Changes between Version 11 and Version 12 of Records/DeclaredOverloadedRecordFields/COmpareSORF
- Timestamp:
- 02/21/12 14:13:44 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Records/DeclaredOverloadedRecordFields/COmpareSORF
v11 v12 56 56 Did that just re-open the back door to the abstraction? 57 57 {{{ 58 e { x = True } ===> set (undefined ::: "x") True e -- desugarred58 e{ x = True } ===> set (undefined ::: "x") True e -- desugarred 59 59 }}} 60 60 ?I didn't need `e`'s record type in scope nor its field `x` to call `set`. … … 62 62 So I can break the abstraction by updating a record/field I can't even `get` ?? 63 63 64 Also, without the signature for `customer_id`, I don't know its result type. So I can't efficitently generate type instances for `GetResult`. (That is, I'd generate a type instance for each record type it appears in, with every one returning result `Int`.)64 Also, without the signature for `customer_id`, I don't know its result type. So I can't cleanly generate type instances for `GetResult`. (That is, I'd generate a type instance for each record type it appears in, with every one returning result `Int`.) 65 65 66 66
