-
-
Notifications
You must be signed in to change notification settings - Fork 4
primitive
Pannous edited this page Nov 19, 2022
·
1 revision
Primitives are unboxed data types such as int32 and float32.
In most cases developers need not and should care about system primitives and let wasp / angle handle the correct handling and marshalling of types.
So use number
instead of int
or int32
except for very rare cases when you want maximum control over non wit
typed abi calls.
While primitives can appear as a node type, when reading or writing a primitives, the abi omits the node header and directly handles the primitives on stack or in memory.
structs are data schemes specifying the layout of potentially nested tuples of primitives.