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

> (def list args args)

Ah, thanks! I'd considered that but desisted out of a vague fear that the quoted-list gotcha might apply here: http://arclanguage.org/item?id=10248



2 points by Pauan 4183 days ago | link

  > (def foo (s) (let a '(3) (= (car a) (cons s (car a)))))
  (3 . 3)
  (3 3 . 3)
  
  > (def foo (s) (let a (list 3) (= (car a) (cons s (car a)))))
  (3 . 3)
  (3 . 3)
  
  > (def foo (s) (let a ((fn args args) 3) (= (car a) (cons s (car a)))))
  (3 . 3)
  (3 . 3)
Yes, this change is fine.

-----