4 ms·
From the Examples: fart => [ :fart, [] ] fart 1 => [ :fart, 1 ] fart 1, 2 => [ :fart, [ 1, 2 ] ] Why isn't the single argument call: fart 1 =
by zwp 15y ago
From the Examples:
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/ http://parsetree.rubyforge.org/ruby_parser/
- dustmop 15y agoThat's funny, I was expecting the opposite behavior: 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.
- zwp 15y agoYes, I prefer this, definitely more lispy. I blame seeing too much of clojure's "defn fart [ args ]" syntax ;-)