Addressing raw string syntax and semantics for Julia 2.0?

Sure, you can freely substitute whatever characters you want into my question; e.g.,

But wouldn’t yet-another quote syntax just further shift around this “broken stair?” Or would you prefer it to be impossible for strings to include the character instead of supporting its escaping?

I take it you’d prefer the latter — but that also sounds like it could be described as a “broken stair.” Sure, it’s a stair with a smaller surface area with a unicode delimiter (and even smaller yet if it’s a matched pair), but it’s also more annoying to write a unicode delimiter in the first place.

Note that you can also (ab)use cmd strings for this — and they too can support triple-quotes:

julia> macro raw_cmd(ex); ex; end
@raw_cmd (macro with 1 method)

julia> println(raw`She said: "His name is O'Brien"`)
She said: "His name is O'Brien"
5 Likes