- Installing
- Hello World
- Spaces
- Identation
- Basics
- Comments
- Output
- ++ method
- Assignments and types
- Operator Precedence
- String interpolation
- Input
- Simple arithmetic
- Multiline strings
- Assert
- Arrays and literal arrays
- Literal intervals
- If, for, while and repeat-until
- Message sends
- Conversion between basic type values
- Anonymous functions
- Evaluating an anonymous function
- Functions with method foreach
- Prototypes
- Packages
- Gradual typing
- Generic prototypes
- Important metaobjects
- The CyanInterpreter prototype
Identation
Identation comes in to help us, developers, to maintain a code to be readable and comprehensive to everyone who reads it. Following that line, in Cyan the correct identation is absolutely required when writing code.
a = 0; b = 0; // error if i < j { } // error
We can see in the example above that variables and statements need to respect the identation related to the scope where they’re inserted.