Arc Forumnew | comments | leaders | submitlogin
6 points by rntz 5939 days ago | link | parent

    (withs (i 3
            x (if (> 3 5) 5 1))
      ... insert code here ....)
Conditionals in arc (and all lisps) are expressions; so use it as a value to assign to a variable, rather than using a conditional to wrap a conceptual "assignment statement".


1 point by bOR_ 5938 days ago | link

Thanks! That might be the first thing I learn from lisp where things work fundamentally different than ruby. This gives some interesting possibilities.

-----