Hacker News new | past | comments | ask | show | jobs | submit login
.NET 6 New Project Templates and Minimal APIs (platform.uno)
11 points by skrsmanovic on Nov 14, 2021 | hide | past | favorite | 2 comments



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.

[1] https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...


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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: