Immutable structures without storage identity #338
Labels
enhancement
Enhancement to language design
incompatible
Resolving issue may not be backwards compatible
lang
Relates to the Ballerina language specification
Type/Proposal
Lang spec proposals
Milestone
Issue #282 is a special case of a more general problem. It is sometimes useful to be able to have structures (both lists and mappings) with pure value semantics. As well as being immutable, they do not have identity distinct from the identity of their members; two such structures are
===
if their members are===
.This relates to #47. We want to be able to have structures e.g. for dates and times, that are mapped onto a database engine's native datatypes. But these native datatypes have value semantics.
It also relates to #189.
The text was updated successfully, but these errors were encountered: