Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Syntactic Sugar

This section collects forms that are primarily about expressiveness, convenience, or alternate notation.

These chapters should be read after the core statement, expression, and declaration rules, because most sugar expands on top of those more fundamental forms.

The current sugar chapters cover:

  • silent/discard forms
  • pipes
  • mixed/compound convenience forms
  • limits
  • matching
  • rolling
  • unpacking
  • inquiry
  • chaining