3 ms·
I'm in agreement: the function is needed, but the syntax feels really weird. I'd also much prefer some kind of prefix, maybe double "at", e.g. ``` var myStrin
by GordonS 5y ago
I'm in agreement: the function is needed, but the syntax feels really weird.
I'd also much prefer some kind of prefix, maybe double "at", e.g.
```
var myString =
@@"blah
blah blah blah
"
```
This feels a lot more natural to me.
- Someone 5y agoA design goal is that you won’t need to escape _any_ character sequence in the string. In your proposal, a " inside a literal string would have to be escaped. In practice, using """ will be sufficient almost all the time.