C# 11 multiline strings

C# 11 supports multiline strings (raw string literals):

Unfortunately this doesn‘t work in Elements:

        string longMessage = """
            This is a long message.
        It has several lines.
        Some are indented
        more than others.
        Some should start at the first column.
        Some have "quoted text" in them.
        """;

Error: „String not terminated“

I believe that feature is still on our todo list, yes.

Thanks! It‘s been 10 years or so that I used C#.
Left Windows behind me and moved to macOS.

Used D and Dart in the last few years, so I‘m just
testing what is available in RemObjects C# 11. :wink:

BTW, how is it possible to add a new language to Elements?
I read somewhere it‘s just a matter of writing 1 class!?
Native Dart would be awesome! It‘s one of the best and easiest languages in the C-family, imho.

Ah, afraid that is not the case. It actually takes quite a lot of work. Mercury, the last language we added, was about a year of work…

1 Like

I wish Walter Bright had stuck to his guns and kept the original name for D - The Mars programming language. :nerd_face:

1 Like

BTW. C# raw strings are mostly supported as of last week (non-interpolated; thats coming next week i hope).

1 Like