Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@jespersh Well, that’s their « demo » for c#10. If you start touching it, you will need to reintroduce program class.
But there are really nice things.
For example, we used to write :
Namespace bla {
code
}
Now it’s
Namespace bla;
Code.
1 tab (or 4 spaces) won per line in the file. Because I never in my life saw 2 different namespaces in the same file.
Global usings : NOICE ! I put System, System.Text, LinQ etc in a global usings file, no need to import them in every class.
(I joined c# dev around .net 1.1, but it was LinQ introduction what convinced me to go 100% c# vs Java or C++) -
Implicit main was around in 9, I think.
The flat namespace declaration is cool, though, looks like the flattened using. -
A hello world in one line? Scheme, Common Lisp, Perl, Python, Ruby, JS, PHP, Bash,powershell and the list goes on my G, but I do like .net so rock on!
!Rant
.net 6 + c# 10 is a blast to work with !
I double dare you to create hello world with less lines :) (It's actually 1 line in .net 6)
rant