News for hackers. Stuff that matters.
Re:The problem with new URL(), and how URL.parse() fixes that by BlarfMcFlarf on Monday May 20, 2024 @08:01AM (#40414516)
Weak type system made it incompatible with function types in practice, and poor compositional tools made it hard to deal with.

In Rust, you have entire libraries around the ergonomics and management of errors to match different applications. In Java, you are stuck using an error management strategy dictated by the error type itself.

Re:The problem with new URL(), and how URL.parse() fixes that by kaba0 on Monday May 20, 2024 @01:14PM (#40417683)
Java is perfectly capable of expressing this thought, it has sum types, so the Result-type road is absolutely available to it. (Optional<T>=Maybe T is part of the JDK even) Although, it might not optimize as well, as this is not common practice.