3 ms·
Even when the syntax does require indentation ("with" in python, "using" in C#) it's still pretty clean IMO.
by seabrookmx 2y ago
Even when the syntax does require indentation ("with" in python, "using" in C#) it's still pretty clean IMO.
- david_allison 2y agoAdditionally, `using` no longer requires indentation in C# https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/using https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
- seabrookmx 2y agoTIL! I just recently updated a few small services to C# 12 and there's a bunch of little niceties like this I'm finding (spread operator for instance).
- pjmlp 2y agoUsing also no longer requires inheritance from IDispose, it suffices that the type does support Dispose pattern, which is great when coupled with extension methods.
- HideousKojima 2y agoUsing no longer requires a new scope block in more recent versions of C#