Variadic templates in Scala
Posted
by Thomas Jung
on Stack Overflow
See other posts from Stack Overflow
or by Thomas Jung
Published on 2010-04-07T15:01:23Z
Indexed on
2010/04/07
15:03 UTC
Read the original article
Hit count: 489
Suppose you want to have something like variadic templates (the ability to define n type parameters for a generic class) in Scala.
For example you do not want to define Tuple2[+T1, +T2] and Tuple3[+T1, +T2, +T3] but Tuple[T*].
Are there other options than HLists?
© Stack Overflow or respective owner