3 ms·
what does defopr do? google search for 'defopr, lisp' returned nothing, google code has 'defopr' as parts of other words or variable names? I want to understand
by nextmoveone 19y ago
what does defopr do? google search for 'defopr, lisp' returned nothing, google code has 'defopr' as parts of other words or variable names? I want to understand the joke. Is it a joke?
- pchristensen 19y agoIt's an Arc macro. Currently, public Arc documentation is pretty spotty :) In http://news.ycombinator.com/item?id=98265 http://news.ycombinator.com/item?id=98265, pg said that defop was to define an operation, and defopa was to define one only for admins. But the 99665 is the id of the comment where pg used defopr. Not sure what it means.
- pg 19y agoThis is the source code for what made that link stop working and instead go to the comment containing it. All the operators in it are specific to Arc (if not to News), so I didn't expect anyone to really understand it. But if you want to: (defopr foo ...) means news.ycombinator.com/foo will redirect to whatever url the body returns. (item n) returns the item (e.g. story or comment) whose id is n, loading it if necessary (item-url i) returns the url that leads to the item page of i Actually I was in a hurry when I wrote this. I could have just said (defopr s2008form req "item?id=99665").