Arc Forumnew | comments | leaders | submitlogin
3 points by almkglor 6093 days ago | link | parent

I think this is good. I suggest pushing this into nex3's arc-wiki.git

What I would really like to have, though, is something like this:

  (defop foo args
    (link "hmm" "something?arg1=value1&arg2=value2"))

  (defop something (arg1 arg2)
    (expr arg1 arg2))


2 points by aston 6093 days ago | link

That isn't actually too hard. You'll want to write your own defop__ dealie, but essentially you can just pull the vars you want out of the req variable. before calling the rest of the body.

-----

2 points by almkglor 6093 days ago | link

No, it is. Because the problem is that there's a whole bunch of defop_ dealies. defopr, defop-raw. Sure, you can make a macro-making macro, but I think it's better if we start from the top and define it in defop-raw, so that everything that builds on top of it uses (arg1 arg2) syntax.

Of course, there might be subtleties involved here anyway.

-----