Hacker News new | past | comments | ask | show | jobs | submit login

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.




I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: