3 ms·
And 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 overloa
by recursivedoubts 6y ago
And 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.