Citrine (programming language): Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 18:
}}
 
'''Citrine''' is a general -purpose [[programming language]] for [[UnixCross-platform|Cross-platform (multi-likeplatform)]] operating systems. It focuses on readability and maintainability. Readability is achieved by syntactic and conceptual minimalism. The language is heavily inspired by [[Smalltalk]] and [[Self (programming language)|Self]] but has some very distinctive features. Like Smalltalk, Citrine treats everything as an object and focuses on sending messages to these objects. However unlike Smalltalk, Citrine lacks the concept of a class. In this regard, Citrine is more like Self and [[JavaScript]] because it uses [[Prototype-based programming|prototypes]]. The combination of Smalltalk like messages and prototypes is what makes Citrine unique.
 
As of the 0.7 version Citrine has focused on supporting native human languages instead of just English to help people reduce the number of bugs because of confusion and misunderstanding due to language barriers. As such Citrine 0.7 and higher feature a translator to translate between human languages.
Line 32:
 
The code block literal uses a ''pipe'' symbol to separate the parameters from the logic '|', if there are no
parameters, the backslash should be used instead of '\'.
 
Citrine only supports full -line comments, comments start with a '#'.
 
A Citrine program is basically a sequence of messages sent to objects. For instance, to determine whether 5 is an even number, the message 'even?' is sent to the number 5.