Re:Checked exceptions: Java’s biggest mistake (2014)
by dragonwriter on Friday September 11, 2020 @10:33PM
(#24449345)
> It's enforced by exactly zero languages.
It's enforced in exactly the same way a nullability constraint is; if you don't use Maybe[T] instead of T , you can't use None (presuming T itself isn't Maybe[U]), just as if you don't use a nullable type you can't use null.
It's enforced in exactly the same way a nullability constraint is; if you don't use Maybe[T] instead of T , you can't use None (presuming T itself isn't Maybe[U]), just as if you don't use a nullable type you can't use null.