Field initializers

#1

When defining a new field it is possible to use initializers such as

fieldA: string default “A”

or

fieldA: string post default “A”

or

fieldA: string = “A”

What is the difference between those initialization methods and are there other ways of initializing a field?

Thank you

0 Likes

#2

This duplicates another question: Can I set a default value for a field in a type?

0 Likes