Keywords

Keywords directive starts with double-colon (::).

Typically, when developers begin learning a new language, keywords assist in understanding the syntax. However, as they become more proficient, they often prefer to avoid repetitive use of keywords. To accommodate this, U uses keywords guarded with a double colon :::

  • Initially, you can use common keywords such as ::if, ::while if you are comfortable with them.
  • As you become more fluent in U, you can switch to shorter sequences like :?, :?> for easier use.

Most expressions involving apertures, such as control flow or OOP, have corresponding keywords protected by an operator ::, or escape #.

::A d3_scene  ... # Create a class 'd3_scene'
::if ... # Same as ':?'