Replies: 2 comments 11 replies
-
I'm not seeing where you want to nest the literals in this example? |
Beta Was this translation helpful? Give feedback.
9 replies
-
Nested literals should work fine. I'm not seeing what the problem is. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently working on a codegenerator which made me think of testing raw string literals.
I have a scenario where i effectively do this:
var sb = new StringBuilder();
This will generate code like this:
if(....)
someExecution()
if (_handler.GetSomePropertyCompletions() is var somePropertyCompletions && somePropertyCompletions.Length > 0)
SomeProperty.AddCompletions(somePropertyCompletions);
I suppose during language design the issues with nested raw string literals came up but exceeded the scope?
Is there a recommended way to deal with such scenarios? There are not many examples about this i could find yet.
Beta Was this translation helpful? Give feedback.
All reactions