Getting to Know Starset Data Types
Starset is a set-oriented language, but what is a set exactly?
A Starset set is a possibly empty collection of distinct words, similar to a Python set, Java Set, or C++ std::set—but what exactly is a word? Let’s dive deeper.
Words
A Starset word is the most fundamental data type, similar to a character string in languages that support them. In a program, words are enclosed in single quotation marks. For instance, ’Hello, world!’ and ’Starset’ are both valid words, but "Hello, world!" is not (it uses double quotation marks).
If a word resembles a valid integer or floating-point number (possibly in scientific notation), it can be written without quotation marks for convenience. Thus, -216.000, 3.14159, and ...
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