Chapter 11 The OCaml language
5 Constants
|
See also the following language extension: extension literals.
The syntactic class of constants comprises literals from the four base types (integers, floating-point numbers, characters, character strings), the integer variants, and constant constructors from both normal and polymorphic variants, as well as the special constants false, true, (), [], and [||], which behave like constant constructors, and begin end, which is equivalent to ().
Copyright © 2025 Institut National de Recherche en Informatique et en Automatique
© 1995-2024 INRIA.
https://ocaml.org/manual/5.3/const.html