Aquarius introduction
Aquarius
is a dynamic functional script language, abbreviated as AQR
.
It is designed as simple as possible. For loops, we only provide a for
expression syntax, unlike other languages that have similar syntaxes while{}
, do{}while()
... Similarly for conditional branching, there is only if
expression syntax, no switch
, no ?:
expression...
Many concepts are different from normal languages. There's no Class
es here, no Package
s here, no statements
here. In contrast to classes in object-oriented languages, we use Module
to organize data and data-related behavior. At the same time, we provide Lambda
s, similar to methods in object-oriented languages, to organize expressions.
The Tao produced One; One produced Two; Two produced Three; Three produced All things.
Expression is the atomic elment in Aquarius. It makes up the Lambda
, further Module
. We sketch out real business with infinite combinations of expressions.
Variable
is the most simple expression, such as builtin nil
, true
and false
. Of course the variables you defined are also expressions.
In addition to these simple expressions, there are Module
and Lambda
invoking expressions, conditional if
expressions, loop for
expressions and try catch
expressions for error handling.