Current status: val m = t('a -> 1, 'b -> "foo") m('a) + 1 m('b).size (m + ('c -> None)).toTuple (1,"foo", None)
-
-
@avibryant@posco t is a macro that keeps the literals in the type so that when you apply with a literal it reproduces the original type -
@avibryant@posco the type looks something like NTuple1[String("a"), String] where the first param is the key and the second the type. -
@avibryant@posco there's no reference to the strings in the compiled code and usage of an undefined key results in a compile time error
End of conversation
New conversation -
-
-
@avibryant by the way: https://github.com/twitter/jaqen v 0.1.0 is outThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.