by zwp · 15y ago · 0 comments
fart => [ :fart, [] ]
fart 1 => [ :fart, 1 ]
fart 1, 2 => [ :fart, [ 1, 2 ] ]
Why isn't the single argument call: fart 1 => [ :fart, [ 1 ] ]
?ps. this is also fun: http://parsetree.rubyforge.org/ruby_parser/
fart => [ :fart ]
fart 1 => [ :fart, 1 ]
fart 1, 2 => [ :fart, 1, 2 ]
Seems more lispy to me, and from a quick glance I can't see where it would break.I blame seeing too much of clojure's "defn fart [ args ]" syntax ;-)