A reverse linked-list, as an enumeration in Dotty: enum Tsil[+T] { case Lin case Snoc(init: Tsil[T], last: T) }
-
-
-
Replying to @kubukoz @propensive
because this one looks like what you'd normally do with a sealed trait / object / case class to me
1 reply 0 retweets 0 likes -
-
Replying to @propensive
I'm just worried about the syntax that (judging by the sample) would only work inside an enum
2 replies 0 retweets 0 likes -
Replying to @kubukoz @propensive
in Scala 2.x, basically every block of {} would allow the same stuff to be put inside (with minor exceptions) - defs, vals, classes etc
2 replies 0 retweets 0 likes
Replying to @kubukoz
I'm not a fan of that aspect of it either.
10:18 AM - 18 May 2017
0 replies
0 retweets
0 likes
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.