Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 2746 days ago | link | parent

Why, does this not work? (I still haven't installed clojure. JVM, yuck..)

  (def baz (& a b)
    ..)


1 point by evanrmurphy 2746 days ago | link

That should work in Clojure, you're right. + But the analogous code in an arc-like would not work because (. (a b)) is not a valid list (since it has no car).

---

+ Technically, it would be:

  (defn baz [& [a b]]
    ..)

-----

1 point by akkartik 2746 days ago | link

There's a lot more wrong with it :) You can't have non-atoms after the dot either.

I was taking for granted that you have to change the reader, or replace dot with a different token.

-----