Arc Forumnew | comments | leaders | submitlogin
1 point by thaddeus 5192 days ago | link | parent

For number 2, try this:

  (def buttons(user sname doc)
    (tag (div class "buttons")
      (do (button user sname doc 1 "skip" "not interesting")
          (button user sname doc 2 "next" "more like this")
          (button user sname doc 4 "love" "more from this site")
          (clear))))


1 point by akkartik 5192 days ago | link

Interesting. Could you elaborate on the reasoning?

-----

2 points by thaddeus 5192 days ago | link

nope. I was obviously color blind last night and too quick with the pen...

Please pretend post never happened :)

-----

1 point by akkartik 5191 days ago | link

Lol. I found it useful, because it got me thinking about the fact that all the tags in the code are really pr's under the hood. I wonder if the code gets evaluated in the wrong order. With most code bugs in evaluation order wouldn't matter as long as outer functions picked up the right objects for their arguments. But here the entire tree shares a single channel.

So thanks.

-----