Inherent type of tuple constructor expression #61
Labels
Area/Lang
Relates to the Ballerina language specification
spec/improve
Something that should be improved in the spec
status/pending
Design is agreed and waiting to be added
Milestone
Tuple constructor should always create a value with inherent type that is fixed length, regardless of whether there is a contextually required type. Relates to issue #51.
When there is no contextually required type, inferred inherent type is fixed length and allows each field to have its own type.
When there us a contextually required type, it is truncated to be of fixed length (the parts after the fixed length must be optional or it would not type check).
Consider whether to change terminology to better reflect semantics, e.g. fixed length list constructor.
The text was updated successfully, but these errors were encountered: