4 ms·
Optionals help, but what's really missing is union types for arguments.
by karmakaze 6y ago
Optionals help, but what's really missing is union types for arguments.
- recursivedoubts 6y agoAnd named arguments. All three features, useful on their own, could be added to java at maybe 10% of the complexity of method overloading. With method overloading, they are all exponentially more complicated. It's crazy how many places method overloading ends up rearing its ugly head if you are dealing with the JVM.
- karmakaze 6y agoI wish all the args always just came as one structured object with some convenient syntax for accessing destructured parts. That object can have named parts as well as unions, optional, collections, and combinations of them.
- deleted 6y ago[deleted]