Field#
Introduction#
Fields are variables that live inside the memory allocated for an instance of a class or struct. To declare a field variable:
1 | Field identifier : Type [ = Expression ] |
...or...
1 | Field identifier := Expression |
For struct fields, Expression must not contain any code that has side effects.