▲ | Defletter a day ago | |||||||||||||||||||||||||||||||||||||||||||
While I am definitely impatiently waiting for null-restricted types, what I feel Java really needs overall is ergonomic handling syntax, notably: "safe calls" (https://kotlinlang.org/docs/null-safety.html#safe-call-opera...), "elvis operator" (https://kotlinlang.org/docs/null-safety.html#elvis-operator), and inline catching (https://ziglang.org/documentation/0.14.1/#catch). | ||||||||||||||||||||||||||||||||||||||||||||
▲ | vips7L a day ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||
Yeah I’ve writen about error handling syntax here a bit: https://news.ycombinator.com/item?id=44551088 https://news.ycombinator.com/item?id=44432640 It’s actually my #1 issue. I hate not knowing about error conditions and no one in Java uses checked exceptions because the language syntax for dealing with them sucks. Brian had a proposal for handling exceptions in switch but it seems to have died in the water. Part of me secretly hopes Swift takes over the world because they have a typed throws that works and handling errors is a breeze. | ||||||||||||||||||||||||||||||||||||||||||||
|