Skip to content

Instantly share code, notes, and snippets.

@nasser
Created January 26, 2012 19:36
Show Gist options
  • Save nasser/1684605 to your computer and use it in GitHub Desktop.
Save nasser/1684605 to your computer and use it in GitHub Desktop.
Puzzling
x = async(1, 2, 3)
puts x
x = async(4, 5, 6)
@brendanberg
Copy link

x0 = async(1, 2, 3)
puts x0
x1 = async(4, 5, 6)

can be reordered to:

x1 = async(4, 5, 6)
x0 = async(1, 2, 3)
puts x0

Yes?

As a side note (wait for the pun), side effects should be looked at with deep suspicion.

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