Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Last active December 11, 2015 11:48
Show Gist options
  • Save lukaszkorecki/4596308 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/4596308 to your computer and use it in GitHub Desktop.
Would be cool if this was possible. I know(ish) why it's hard to do.... But it would be cool :-)
def ok a ; puts "ok #{a} " ; end
ok 1 # => "ok 1"
def yo a ; puts "yo #{a}" ; end
yo 1 # => "yo 1"
ok(a), yo(b) = [1,2] # => exception!
a , b = [1,2]; ok(a) ; yo(b) # => meh!
@tomekwojcik
Copy link

As long as it would be quite a nice feature, I think it would also mess with the code readability. At least from my pythonic point of view :). BTW, it doesn't work in Python, too.

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