Scalars
Four scalar data types: string, integer, float, boolean.
In expressions/assignments, values of scalar variables
are automatically converted to a type appropriate for the context
where the context is determined by the operators used
- Arithmetic operators → numeric context
- String operators (concatenation etc) → string context
This requires two sets of relational (comparison) operators:
- Numeric:
== != < <= > >= <=>
- String:
eq ne lt le gt ge cmp
|