So nothing special here
There are bunch of data types:
- floats
Numbers with a floating point
1.1
1.2
- ints
300_000
1
OCaml as ruby, elixir does, allow you to place underscores in the middle of numeric literals to improve readability. Note that underscores can be placed anywhere within a number, not just every three digits.
- booleans
(1 < 2) = false;;
- chars
"a";;
- strings (immutable)
"Hello";;
Top comments (1)
Hello,
char
type uses single quote:'a'
.