News for hackers. Stuff that matters.
Re:What's new in the .NET 11 runtime by mycall on Wednesday November 11, 2026 @12:57PM (#50456350)
> don't cast from double to decimal

I hope this is a compiler warning at the least.

Re:What's new in the .NET 11 runtime by tomalbrc on Wednesday November 11, 2026 @01:51PM (#50456995)
It is an error if you dont explicitly cast: https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
Re:What's new in the .NET 11 runtime by bazoom42 on Thursday November 12, 2026 @05:14AM (#50465262)
A cast is the programmer saying “i know more than the compiler”. If you dont, dont use cast.