3 ms·
> Exceptions have implied control flow which makes them strictly worse than the Result types which are, as their name suggests, just types. There’s nothing wro
by saagarjha 4y ago
> Exceptions have implied control flow which makes them strictly worse than the Result types which are, as their name suggests, just types.
There’s nothing wrong with implied control flow.
> All of Java's user defined types insisted on living on the heap. Just want to make a pair of integers? Sorry, that's an Object now and so it lives on the heap, whereas just one integer is fine, those are just local stack variables.
That’s not how Java works. The runtime is free to store things wherever it likes, with whatever representation it likes. It needs to follow the semantics of the standard, but whatever gets executed is what the JIT felt like emitting.
- deleted 4y ago[deleted]