Feature Request: Support raw string literal
Hi, is it impossible to implement the Raw string literal syntax imported in C# 11.
It is very useful with multiple line strings with quotes and brackets. Here is an example:
int veryCold = -30;
int comfortable = 20;
// using newer Raw string literal syntax
string jsonString1 =
$$"""
{
"TemperatureRanges" : {
"Cold" : {
"High": {{comfortable}},
"Low": {{veryCold}}
}
}
}
""";
// older method
string jsonString2 =
$@"{{
""TemperatureRanges"" : {{
""Cold"" : {{
""High"": {comfortable},
""Low"": {veryCold}
}}
}}
}}";
It is obvious that the raw string literal syntax is cleaner and more concise. Hope you can consider it, thanks!
Hello @cesaryuan ,
Thank you for reporting, we will look very soon at this one.
Best Regards,
Jon
Hello @cesaryuan ,
Just to update you, it will take us a little bit more time than expected due to work overload.
But this one is definitely something that we hope to release soon.
Best Regards,
Jon
Thanks for your attention!
Just want to know the progress 😊
Hello @cesaryuan ,
Sorry for the long reply; I was on vacation.
There is currently no update for this one.
I hope we will eventually get it done, but at this moment, our backlog is still too full to add it.
Best Regards,
Jon