No handling of 1.9 array decomposition in def arguments #61

Closed
whitequark opened this Issue Oct 7, 2012 · 4 comments

Comments

Projects
None yet
2 participants

Best described by this snippet:

> Ruby19Parser.new.parse('def a(a=1, (b, f), d, &e); end')
RuntimeError: unhandled sexp: s(:masgn, s(:array, s(:lasgn, :b), s(:lasgn, :f)), :d)
from /home/whitequark/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.0.a8/lib/ruby_parser_extras.rb:176:in `block in args19'

zenspider was assigned Oct 9, 2012

Owner

zenspider commented Oct 9, 2012

damnit I'm seriously hating this language right now... :(

Didn't impress @brixen either.

Owner

zenspider commented Oct 9, 2012

I have yet to see a real-world example of this. Until I do, I doubt I'll bother focusing on this.

That said, anyone who uses this is in serious need of some Parking Lot Therapy.

Owner

zenspider commented Oct 26, 2012

I inadvertently fixed this when I did block args.

>> Ruby19Parser.new.parse('def a(a=1, (b, f), d, &e); end')
=> s(:defn, :a, s(:args, s(:lasgn, :a, s(:lit, 1)), s(:masgn, :b, :f), :d, :"&e"), s(:nil))

zenspider closed this Oct 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment