-
-
Notifications
You must be signed in to change notification settings - Fork 9
POD
IsaacShelton edited this page Mar 21, 2022
·
1 revision
The POD
keyword is used to mark things as "plain-old-data". Generally, when a construct is marked as POD
, they will be immune to certain management procedures that would normally take effect. Depending on the context in which POD
is used, different management procedures are affected.
There are three main contexts in which POD
is used
-
In function/method parameters (e.g.
func __modulus__(lhs POD String, rhs String) String
) -
In variable declarations (e.g.
my_string POD String
) -
In plain-old-data assignment (e.g.
name = POD firstname
)