Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You are comparing having a feature vs not having it. To make it fair you have to provide for polymorphism, and at that point most of your points become moot in lower level languages as well. Also, bounded subclassing exists (sealed/final classes) so in theory most/some of the optimizations you mention are possible.


IMO, the best way to do this is to provide multimethods to give you both polymorphism while letting the compiler know how objects are laid out.




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

Search: