This post explores the concept of immutability in Ballerina, specifically focusing on immutable mapping fields, using records with immutable fields in tables, and creating immutable fields via the mapping constructor. It also discusses typing with immutable mapping fields and the difference between immutable fields and fields of immutable types. Additionally, the post covers final object fields, typing with final object fields, and the concept of immutable classes in Ballerina.
Table of contents
Immutability in Ballerina — Part IIImmutable mapping fieldsFinal object fieldsImmutable classesSort: