Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET
by gwbas1c on Wednesday May 21, 2025 @01:16PM
(#44053703)
(Perhaps that is why I never got the hang of Java's LINQ equivalent?)
Java has RuntimeException, which is unchecked.
Granted, I can understand why some developers don't understand why some exceptions need to be checked versus not checked. Rust got this right with its Result type and panic.
Extension methods allow LINQ to be implemented as library over all the existing collection types instead of needing child types or refactoring the core collections library.