5 ms·
F# gains string interpolation and typed string interpolation: https://devblogs.microsoft.com/dotnet/announcing-f-5/#string-interpolation https://devblogs.micro
by modernerd 6y ago
F# gains string interpolation and typed string interpolation:
https://devblogs.microsoft.com/dotnet/announcing-f-5/#string-interpolation https://devblogs.microsoft.com/dotnet/announcing-f-5/#string...
Knew it was coming but still really happy to see this.
- arrow7000 6y agoThese changes are huge! I'm interested to see what I can build with computation expression overloads
- gfody 6y agoif this can be used to make a type checker for SQL strings like https://github.com/MedFlyt/mfsqlchecker https://github.com/MedFlyt/mfsqlchecker or https://github.com/codemix/ts-sql https://github.com/codemix/ts-sql but for C# I will be stoked!
- smoothdeveloper 6y agoThe closest thing is https://github.com/rspeele/Rezoom.SQL https://github.com/rspeele/Rezoom.SQL which once compiled in your F# project, can be used in C# by referencing the generated assembly. Although this is nothing to do with string interpolation, the "typed string interpolation" refer to the F# printf format specifiers. You could also build such tool separately using FSharp.Compiler.Service (possibly using the analyzer infrastructure for ionide: https://github.com/ionide/FSharp.Analyzers.SDK https://github.com/ionide/FSharp.Analyzers.SDK), AFAIU there will be consolidation of this type of tooling relying on FSharp.Compiler.Service in the future to make this integrated to all F# tooling.
- gfody 6y agothis is a nice looking project, I actually starred it in the past and had been meaning to check it out - thanks for reminding me!