Ceylon (programming language): Difference between revisions

Content deleted Content added
Highlight using Ceylon lexer
FrescoBot (talk | contribs)
m Bot: link syntax and minor changes
Line 2:
| name = Ceylon
| paradigm = [[Object-oriented programming|Object-oriented]]
| logo = [[image:Ceylon (programming language) logo.png]]
| released = 2011
| designer = Gavin King, [[Red Hat]]
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 composed 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]]: