On Fri, Feb 21, 2014 at 10:14 AM, Kevin Wright <[email protected]>
wrote:

It can directly duplicate anything available in Kotlin or Ceylon using
> nothing more than built-in features
>
 Not really, because the type system doesn't know about union and
intersection types.

scala> List(1, "a")
res0: List[Any] = List(1, a)

In Ceylon, the type of this list would be List<Integer|String>.

Null support flows very naturally out of this also, without requiring hacks
to make it work. For example, Null|Person can't be assigned to a
Personwithout proper checking, and it's also aliased to
Person? for convenience.
-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/javaposse.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to