Is case class Foo(x: Int) extends Top legit? (I guess no). class Bar(x: Int, y: String) extends Top (I guess no again).
-
-
I think the reality is trying to avoid making similar mistakes as AnyVal. There's a reason there's a new proposal.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Also, I think the main objection is companion objects on types, and inconsistencies there.
-
I'll be watching for consistency between `class Foo(x: Int) extends T` where T in AnyVal, Any, Top. When each of those box sounds complex.
- Show replies
New conversation -
-
-
As for pattern Matching an Any... With any erased type you give up runtime reflection without using a reified tag. That seems consistent..
-
Those are type params, here we have non-realtime types.
- Show replies
New conversation -
-
-
But, it'd be nice to get something which fixes the AnyVal situation in sooner. Top level types are quite thorny... Remembering 2.10..
Thanks. 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.