trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 207 forks source link

Arguments with default values have to be last. #56

Closed nightscape closed 11 years ago

trogdoro commented 11 years ago

Thanks for the pull request! Just curious when this was causing an error - "def foo a=nil, b" seems to be fine in ruby 1.9.3. Is this for ruby 2.0?

nightscape commented 11 years ago

Yes, this is 2.0. I think it never was officially possible to have arguments with default values in leading positions but now it is a syntax error.

trogdoro commented 11 years ago

I just ran into it with ruby 1.8 as well, which MacVim seems to be hard-coded to.