Replies: 2 comments 27 replies
-
That's the logic we'll be having. |
Beta Was this translation helpful? Give feedback.
-
This seems like the wrong thing to consider. Given backticks have no current use in C#, it seems like ` vs """ is the right question to consider.
I still don't buy this argument. I hope the developers we're trying to save from using backticks in C# never have to write JavaScript, Swift, Markdown, commands on Unix, F#, Powershell, or any of the other languages that use them. In other words, if I'm a developer using a non-English keyboard, I already need a shortcut to create backticks regardless of any decision the C# LDT makes. This character is far too commonly used to go out of mainstream usage now. Having a single line regex that requires 6 double quotes (12 glyphs!) just to not deal with escaping is going to be really ugly. Really, the whole need for this feature is because verbatim strings in C# were misdesigned from the get-go and just traded one kind of escaping for another. If we must add yet another new string form, it should be as lightweight and easy to read as possible. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2021/LDM-2021-05-17.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions