Hacker News new | past | comments | ask | show | jobs | submit | stokito's comments login

I don't need this. In most cases everything can be solved with different methods overrided by type. This is OOP way.

But it's makes language more complicated and what is more important - it makes harder to refactor, especially via IDE. So my opinition: we don't need this and this doesn't have any value besides marketing.


The problem with OOP way is that it's overly wordy and complex in this case. Much like switch statements in procedural code before the advent of OOP.

Type-based function overloads are not specific to OOP, by the way.


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: