4 ms·
What's wrong with using both approaches: debug binaries get compiled with boxing generics, while release compiles using macros?
by derefr 17y ago
What's wrong with using both approaches: debug binaries get compiled with boxing generics, while release compiles using macros?
- stcredzero 17y agoOr have the former as the default, and allow the programmer to opt for the second, if the optimization is needed?
- gfodor 17y agoCool idea. Has this been done in any language before?
- extempore 17y agoScala offers both (not in a release version yet, but not far off) by way of @specialize. http://www.scala-lang.org/sid/9 http://www.scala-lang.org/sid/9