News for hackers. Stuff that matters.
Re:What's New in F# 9 by jodrellblank on Sunday November 10, 2024 @06:50PM (#42103451)
You no longer need imports, or namespace, class and main method boilerplate to write a basic C# program; there’s now a way to simply write some lines of code in a file with some implicit imports, and compile/run them like it was more of a scripting language.

https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/to...

(If there’s other syntax changes, I don’t know them, AFAIK it’s the same C# you write)

Re:What's New in F# 9 by SideburnsOfDoom on Monday November 11, 2024 @05:33AM (#42106052)
> If there’s other syntax changes, I don’t know them

The new syntaxes that come to my mind are:

* File-scoped namespaces

* "global using"

* "using static"