How to include quotation marks in strings? #462
-
Apologies for the basic question, but I've searched around the documentation and code for a while and can't figure out how to include a quotation mark within a string. I've tried the following, to no avail:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Argh, right after I post this, I think I figured it out: it looks like you can use backticks for strings, e.g. |
Beta Was this translation helpful? Give feedback.
-
No apologies needed ... it's never documented concretely ... apologies for that :) Rye is planned to have similar escape sequences as Go, I just haven't yet made them, so "\"" should work ... I will add it with next update (today or tomorrow). About multiline strings that also can accept " directly, I've changed it a few times ... Rebol has { }, but that doesn't make sense in Rye where { } is a main block syntax. Currently I have // Update: |
Beta Was this translation helpful? Give feedback.
No apologies needed ... it's never documented concretely ... apologies for that :)
Rye is planned to have similar escape sequences as Go, I just haven't yet made them, so "\"" should work ... I will add it with next update (today or tomorrow).
About multiline strings that also can accept " directly, I've changed it a few times ... Rebol has { }, but that doesn't make sense in Rye where { } is a main block syntax. Currently I have
, but I'm not sure about it 100%. At least on our keyboard it's a little cumbersome to type and there is an open problem with multiline strings and indentation. I found solution Zig found for this quite interesting. We will see, it's still an open decision.
// U…