Record-let syntax and semantics
|Reported by:||medernac||Owned by:||alexshinn|
|Component:||WG1 - Core||Keywords:|
Where each <variable> is filled with the corresponding data <field> from <record-data> as in a <let> expression, then the <body> is evaluated with these bindinds added and last expressions is returned. It is an error if the <record-data> does not contain corresponding <fields>.
Notice that this works directly on the data itself and that the data may contain more fields than the one cited in the record-let expression allowing code to be reused for inherited records.
- Do we need to be able to check at runtime if a given record data has a given field ?
Change History (12)
comment:10 Changed 6 years ago by alexshinn
- Resolution set to fixed
- Status changed from new to closed
comment:11 Changed 4 years ago by cowan
- Resolution fixed deleted
- Status changed from closed to reopened