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

This is something that other GC languages like the Oberon family or Modula-3 get right, by default you use the stack unless the objects are NEWed.

Eiffel has it even better, you can declared if a class should be heap or value type (expanded in Eiffel speak) by default, but you get to override it when declaring variables.

Still you get this problem even in languages like C, if the developers went a bit too heap friendly.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: