Eval-Expression.NET icon indicating copy to clipboard operation
Eval-Expression.NET copied to clipboard

Feature Request: Support raw string literal

Open cesaryuan opened this issue 2 years ago • 6 comments

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!

cesaryuan avatar Feb 01 '23 03:02 cesaryuan

Hello @cesaryuan ,

Thank you for reporting, we will look very soon at this one.

Best Regards,

Jon

JonathanMagnan avatar Feb 01 '23 14:02 JonathanMagnan

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

JonathanMagnan avatar Feb 15 '23 15:02 JonathanMagnan

Thanks for your attention!

cesaryuan avatar Feb 15 '23 15:02 cesaryuan

Just want to know the progress 😊

cesaryuan avatar May 07 '24 07:05 cesaryuan

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

JonathanMagnan avatar May 21 '24 01:05 JonathanMagnan