26
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 06 Apr 2024
26 points (96.4% liked)
Rust Programming
9435 readers
1 users here now
founded 7 years ago
MODERATORS
Looking to example code in the README I have to say that it is neat! ❤️🔥 But know what? Could be awesome to support char-literals in the
parser!macro. Currently in that example str-literals used as single-char strings. I mean this for example:Why there dash is str but not a char? Also what about escapes, unicode sequences and binary literals?
There's no real need for character literals. They would behave exactly the same as string literals but only support a single character. And you can use escape sequences in the string literal, of course.