| The . and ! notations are great, however I don't understand why a.b.c is equiv. to (a b c) and not to ((a b) c) As some of you noted (pg himself if I'm right), this syntax is useful especially in the case of structures access, and it should not be abused in other cases. But, if we do so, l.10!x for example should mean "the field x of the tenth hash element of list l", or in plain s-expr ((l 10) 'x). Thus I have two questions :
- is the a way I missed to express elegantly the latter s-expr with funny symbols like . ! or even : ?
- in what cases sould a form like (a b 'c d) be translated in a.b!c.d without being felt as an abuse of cool syntax ? |