[RFC FS-1132] Interpolated strings syntax with multiple dollar signs #716
Replies: 6 comments 14 replies
-
Not to anchor the discussion around this, but I am wondering about:
Can anyone maybe help estimate how feasible this is (and how much work)? |
Beta Was this translation helpful? Give feedback.
-
In my opinion this adds too much complexity for a minimal gain. Good old VIM have a way to solve this by specifying the separator (for searches for example), but I don't know how easy will be to implement something similar in our compiler parser:
|
Beta Was this translation helpful? Give feedback.
-
I have added one more open question - whether regular string literals (single quoted) should be supported as well. I am leaning towards no to be honest, since the idea here is to have string literals with as little escaping as possible, and single quoted string literals rely on escaping (as opposed to triple quoted ones). Curious to hear what others think though. |
Beta Was this translation helpful? Give feedback.
-
The implementation is IMO ready to be reviewed: dotnet/fsharp#14640 (brace matching in VS does not quite work, but I want to time box it for now and in the worst case tackle in a separate PR). What is the next step here, PR review or some final design review first? cc: @abelbraaksma |
Beta Was this translation helpful? Give feedback.
-
I wonder if this suggestion can also be extended to make
->
Single |
Beta Was this translation helpful? Give feedback.
-
FYI there will be a community review session for this feature tomorrow, March 28, at 8PM UTC+2, link to join the meeting will be posted later under this issue: fsharp/fsharp.org#932 |
Beta Was this translation helpful? Give feedback.
-
Let's discuss RFC FS-1132 (PR link)
Suggestion: Allow double dollar signs for interpolated strings as in C# 11
FYI this RFC is merged now.
Edit: a preliminary implementation can be found here: dotnet/fsharp#14640
Beta Was this translation helpful? Give feedback.
All reactions