118 karma · joined Mar 31, 2016 (10y ago) · 93 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
Though most of the time, you don't need to know any of this, you just use .Net and it works on Windows, Linux, Android, Apple and in the browser.
comment 4y ago · link · parent
Exceptions are here to stay though. I don't see how you could retrofit something like Rust's Result on top of .Net. (Also, .Net has a pattern that's an alternative to exceptions: `bool TrySomething(out T result)`. But it's quite limited, in several ways.)
comment 4y ago · link · parent
comment 5y ago · link · parent
The difference between a class and a struct in C# is not the same as between a class and a struct in C++. In C#, structs can definitely be useful, but also have some gotchas, so they're mostly used only in performance-critical parts of the code.
If you visit a foreign tribe, I think you should listen to the locals, unless you are really certain your way of doing things is better in the local context.
comment 5y ago · link · parent
MS recently made one tiny decision that was unfriendly to open source, it caused a huge outcry and a reversal within 48 hours on a weekend. I can't even imagine what the reaction would be in your scenario.
Besides, basically everything is open source now and you can't put that genie back into the bottle.
comment 5y ago · link · parent
Not quite. ASP.NET is the web framework that comes with .NET Framework. ASP.NET Core is the web framework that comes with .NET Core and .NET.
> .NET Framework refers to every version of .NET 4.8 and before.
It was fine to call .NET Framework 4.8 just ".NET 4.8" in the past, but I would avoid it now, to clearly separate .NET Framework 4.8 from .NET 5.0.
comment 6y ago · link · parent
They are working on improving that: https://github.com/dotnet/designs/blob/master/accepted/2020/...
comment 6y ago · link · parent
(see https://devblogs.microsoft.com/dotnet/introducing-net-5/)
comment 6y ago · link · parent
Also, they have now corrected the credit: https://devblogs.microsoft.com/commandline/winget-install-le...