Re:.NET 6 New Project Templates and Minimal APIs
by signal11 on Sunday November 14, 2021 @06:26PM
(#29221760)
I quite like that you no longer have to enclose all your C# code in a namespace { } block. Removes an admittedly minor aesthetic niggle about the language for me. Itβs a bit more like Java now[1].
namespace X.Y.Z;
using System;
class X {
// ....
}
Now I wonder if the Java folk will (in a similar vein) someday drop the com/foo/myapp/Main.java requirement for a public com.foo.myapp.Main class.
Re:.NET 6 New Project Templates and Minimal APIs
by mhoad on Monday November 15, 2021 @05:35AM
(#29225838)
One thing I love about Dart is that they took all of that Java boilerplate and basically killed it while still keeping the same boring predictable nature of Java.
namespace X.Y.Z;
using System;
class X {
}Now I wonder if the Java folk will (in a similar vein) someday drop the com/foo/myapp/Main.java requirement for a public com.foo.myapp.Main class.
[1] https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...