yopp's latest activity

@tenderlove let me guess: bar will return different value because keyword arg is expression instead of plain literal?

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@tenderlove wow, TIL. Indeed they should not but also how you can exploit this in a golf

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@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

@tenderlove let me guess: bar will return different value because keyword arg is expression instead of plain literal?

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies