| Forgive me if this was already discussed on the forums, but I was thinking about all the defset discussion on the forums a while ago, and while I remember a number of macros abstracting away the boilerplate of defset, I don't remember an actual proposition to integrate this into the official def. In http://arclanguage.org/item?id=3112 for example, there is a def= which you could use as such: (def= caddr (val xs)
(= (car (cdr (cdr xs))) val))
But while this is nice, I would really rather have pg integrate this into def: (def (= caddr) (val xs)
(= (car (cdr (cdr xs))) val))
Is there any hope of getting this? (Is this what the "Control over sref" entry is for in the "What do want added" poll?)(I also remember http://arclanguage.org/item?id=3595 which is very cool as well, but which I don't think is necessarily needed to get (def (= func) ...) to work.) |