Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support raw string literal #141

Open
cesaryuan opened this issue Feb 1, 2023 · 5 comments
Open

Feature Request: Support raw string literal #141

cesaryuan opened this issue Feb 1, 2023 · 5 comments
Assignees

Comments

@cesaryuan
Copy link

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!

@JonathanMagnan JonathanMagnan self-assigned this Feb 1, 2023
@JonathanMagnan
Copy link
Member

Hello @cesaryuan ,

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

Best Regards,

Jon

@JonathanMagnan
Copy link
Member

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

@cesaryuan
Copy link
Author

Thanks for your attention!

@cesaryuan
Copy link
Author

Just want to know the progress 😊

@JonathanMagnan
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants