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.)
Here's a better definition:
(let olddef def
(mac def (name args . body)
(if (acons name)
`(def= ,(cadr name) ,args ,@body)
(apply (rep olddef) (cons name (cons args body))))))-----
-----