You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an F# user, I must👍this! We have not only comments (*...*) (these are handled by VS), but also arbitrary double-backquoted Unicode identifiers¹'² ``...``, attributes [<...>], arrays [|...|], anonymous records {|...|}, half-bananas (|HalfBanana|_|), full bananas (|Full|Banana|)³, interpolated typed quotations <@...@> and interpolated untyped quotations <@@...@@>—the latter of which rudely kills, right on the spot, the budding pattern “anything two-character goes, as long as it's more or less symmetric”⁴...
Oh, and the strings! We have the sane, boring old-school quoted strings, the farthing (@) single and double quoted interpolated strings, one-buck ($) single quoted interpolated strings, two-buck ($$) triple quoted interpolated strings... and perhaps even worse more. Inserting paired {...} over a selection inside such a string would be helpful and appreciated indeed. Sometimes it's not too obvious where they've tangled.
¹ A pattern very common in naming unit tests, e.g.,
[<UnitTest>]let ``"yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation`` =
. . .
² ...but on a second thought, is there anything wrong with the naming of this function? It compiles, after all, and does what it's supposed to do! (I'm not sure yet what exactly, tho.) Let the types guide you!
let``tío, ¡ay,Dios!, ¿por qué se te ve tan triste?``(@):'ξ->'ξ =(@)>>(@)
³ I'm struggling to remember when I've declared a banana correctly from the first attempt, closing it with the | on both sides inside the parentheses. It's not impossible that such a thing simply never happened.
⁴ j/k, of course. Rly, we first fight to exhaustion about adding (or not) any new syntax at all, then, having recovered a bit, jump back into the ring to fight about the choice of particular characters.
Some languages has more than one character for surrounding.
For example
F#:
let array1 = [| 1; 2; 3 |]
Nemerle:
<[ $a ]>
orlinq <# from a in b select a #>
Python:
“””
Doc string
“””
Other examples can be brought if needed.
Please support this too.
The text was updated successfully, but these errors were encountered: