Raw Strings #3673
ollien
started this conversation in
Ideas & suggestions
Raw Strings
#3673
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would love syntax for "raw strings" in Gleam. I don't think they need to support multiple lines necessarily, but definitely should ignore escape sequences. As-is, it's a little cumbersome to write regular expressions, as you need to double-escape sequences like
\w
, for instance.I imagine the syntax could look something like
r"\w+"
, which would be equivalent to"\\w+"
Beta Was this translation helpful? Give feedback.
All reactions