Changes between Version 21 and Version 22 of Records/NameSpacing


Ignore:
Timestamp:
Jan 9, 2012 8:42:34 AM (2 years ago)
Author:
GregWeber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Records/NameSpacing

    v21 v22  
    201201}}} 
    202202 
    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` 
     203It 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` 
    204204 
    205205Is 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. 
     
    211211So if we have a function `f r = b r.a` then one can write it points-free: `b . .a` 
    212212 
    213 Our longer example from above: `e d . .c . .b . .a` 
     213Our longer example from above: `e . d . .c . .b . .a` 
    214214 
    215215At first glance it may look odd, but it is starting to grow on me. Also let us consider real use with longer names: 
    216216{{{ 
    217 echo delta . .charlie . .beta . .alpha 
     217echo . delta . .charlie . .beta . .alpha 
    218218}}} 
    219219