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

What's wrong with using both approaches: debug binaries get compiled with boxing generics, while release compiles using macros?


Scala offers both (not in a release version yet, but not far off) by way of @specialize. http://www.scala-lang.org/sid/9


Or have the former as the default, and allow the programmer to opt for the second, if the optimization is needed?


Cool idea. Has this been done in any language before?




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: