@tenderlove yay! I’ve edited original reply, but I suppose that because expression are evaluated at the method call time so it takes precedence for some reason (last-write-wins?)? Anyway, why it’s even legal! And why you can have clashing variable names with _ prefix? Is this stuff in mruby spec as well? So many questions!

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Aaron Patterson ✅

@alex I'm not sure if it's in mspec. Matz has said that the assignment of repeated parameters has "undefined behavior", so maybe no tests in mspec. Nobody should depend on this behavior

2
10mo
Replies