Type Specialization
Viewing old version 713216e293fc2ac77941b12021134dd090d18c79; View Current
The Gist
This isn’t covered by the tour.
My Interpretation
Type Specialization is a feature that allows the Scala compiler to create type-specific versions of classes that take type parameters. For example, if you have a collection of type Collection[T], and you specialize T, the compiler will create not just one class, but one for each primitive type as well as for the object type.
This is entirely transparent to the programmer, and essentially is useful for optimizing code that is being slowed down by autoboxing.
For a great overview, watch this talk] from ScalaDays 2010
My Thoughts on This Feature
TBD
Last Updated 07/16/2010 at 01:48:54 PM by davec
blog comments powered by Disqus
All Content by David Copeland is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.