Empty refinements prevent unwanted widening when assigning singleton-typed values to a val: https://gist.github.com/milessabin/65fa0d4ef373781d3ab4 … #Scala
-
-
-
Replying to @oxbow_lakes
@oxbow_lakes No, it's a feature. It's been consistent since 2.10.x when I first noticed it, possibly earlier. Made good use of in shapeless.2 replies 0 retweets 0 likes -
Replying to @milessabin
@milessabin It's useful, yes, but like@oxbow_lakes I guess (hope?) accidental and not designed.3 replies 0 retweets 0 likes -
Replying to @Blaisorblade
@milessabin@oxbow_lakes And it conflicts with "If no refinement is given, the empty refinement is implicitly added" http://www.scala-lang.org/files/archive/spec/2.11/03-types.html#compound-types …2 replies 0 retweets 0 likes -
Replying to @Blaisorblade
@Blaisorblade meh. Specs are for changing. /cc@oxbow_lakes2 replies 0 retweets 3 likes
@milessabin @Blaisorblade @oxbow_lakes Specs are for changing and documentation is for coming back to haunt you once you've changed the API.
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.