Usability problem with open types, optional/default fields and mapping constructors #268
Labels
Area/Lang
Relates to the Ballerina language specification
design/usability
Design does not work well for some tasks
incompatible
Resolving issue may not be backwards compatible
Milestone
Consider:
This will compile despite
country
being misspelled, because the record is open and thecountry
field is not required. There would be the same problem ifcountry
was required, but had a default value. This seems very much not OK to me.The text was updated successfully, but these errors were encountered: