Comment on Java 21 makes me actually like Java again

<- View Parent
BatmanAoD@programming.dev ⁨1⁩ ⁨year⁩ ago

It’s not possible to instantiate or assign, which is more like a never type than a unit; and it is not possible to define new types with the same properties, which is also more like bottom than unit. But you’re right that it’s not actually a true never type since it can’t represent function divergence.

I think the truth is just that Java’s type system isn’t very mathematically disciplined.

source
Sort:hotnewtop