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

Operators

Flint keeps operator spelling conventional where it helps and explicit where ambiguity would hurt.

Arithmetic

Flint uses the familiar arithmetic operators:

  • +
  • -
  • *
  • /
  • %

% is modulo.

Comparison

Comparison operators follow the usual spellings:

  • ==
  • !=
  • <
  • <=
  • >
  • >=

Logical Operators

Logical operators are spelled as words:

  • and
  • or
  • not

This makes them visually separate from bitwise operators.

Bitwise Operators

Bitwise operators keep symbolic spellings:

  • &
  • |
  • ^
  • ~
  • <<
  • >>

In Flint, those operators are for integer and bit-level work, not boolean logic.