Ceylon (programming language): Difference between revisions

Content deleted Content added
Codename Lisa (talk | contribs)
Line 50:
 
=== Type System ===
One of the most novel aspects of Ceylon is its [[Type system|type system]]. Ceylon foregoes java's primitive types<ref>{{cite web|last1=King|first1=Gavin|title=Ceylon: Language Design FAQ|url=http://ceylon-lang.org/documentation/faq/language-design/}}</ref> and [[Object type|boxing]] in favor of a type system comprisedcomposed entirely of first-class objects.
 
More uniquely, Ceylon allows for union and intersection types, where a variable can have more than one type. For example, here is a Ceylon function which may take either an [[Integer (computer science)|integer]] or a [[String (computer science)|string]]: