Studying Variables and Data Types
In the spirit of Occam’s razor and in the spirit of being essentially a glorified assembly language, Occam offers a limited set of numerical data types. Three primary types are mandatory, with some allowing further specifications:
-
INT. Required, equal in size to the computer’s machine word; INT16, INT32, INT64 are optional extensions.
-
BYTE. Required, comprising eight bits; also represents characters.
-
BOOL. Required, can be TRUE or FALSE.
-
REAL32, REAL64. Both are optional extensions.
Simple Data Types | |
|---|---|
|
|
Occam’s palette of simple data types, especially the absence of required floating point data types, resembles ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access