-
Notifications
You must be signed in to change notification settings - Fork 3
Value Types
TheRealMichaelWang edited this page Mar 30, 2021
·
4 revisions
Since FastCode aims to automate as much value-typing as possible, it maintains a minimal number of data types.
- Numbers - Any numerical value is represented as a standard IEEE float.
- Characters - Characters are represented as unsigned, byte-sized values.
- Null - null has its own type. It can be referenced using the
nullkeyword.
Note: If you're wondering how conditionals are evaluated without a primitive boolean type, see this wiki page.
- Structures - Each structure has a list of properties which be accessed and used like variables.
- Arrays - For speed improvements, Arrays are NOT implemented as a linked list. That being said, array concatenation is MUCH slower.
FastCode is dynamically type checked, so you don't have to worry about specifying any types beforehand.