Changes between Version 21 and Version 22 of Records/NameSpacing
- Timestamp:
- 01/09/12 00:42:34 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Records/NameSpacing
v21 v22 201 201 }}} 202 202 203 It bothers some that the code does not look like the previous `b a r` - chiefly that the record is now in the middle. Chaining can make this perception even worse: ` e dr.a.b.c`203 It bothers some that the code does not look like the previous `b a r` - chiefly that the record is now in the middle. Chaining can make this perception even worse: `(e . d) r.a.b.c` 204 204 205 205 Is it possible we can have an equivalent of the dot that changes the ordering? `b a.@r` is possible, but requires an operator that binds tightly to the right. … … 211 211 So if we have a function `f r = b r.a` then one can write it points-free: `b . .a` 212 212 213 Our longer example from above: `e d . .c . .b . .a`213 Our longer example from above: `e . d . .c . .b . .a` 214 214 215 215 At first glance it may look odd, but it is starting to grow on me. Also let us consider real use with longer names: 216 216 {{{ 217 echo delta . .charlie . .beta . .alpha217 echo . delta . .charlie . .beta . .alpha 218 218 }}} 219 219
