We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would be nice if this works:
x = rand < 0.5 ? 1 : nil spawn(args: {x}) do |x| p(x + 1) if x end p(x + 1) if x sleep 0.1
because right now i cant just compare with if x, i should write this, which is noise in big code:
if x
x = rand < 0.5 ? 1 : nil spawn do if y = x p y + 1 end end if y = x p y + 1 end sleep 0.1
The text was updated successfully, but these errors were encountered:
I think the compiler should just be a bit smarter and notice that x doesn't change, so if x should just work
x
Sorry, something went wrong.
Closing as duplicate of #3093 (which describes the problem in a better way)
No branches or pull requests
would be nice if this works:
because right now i cant just compare with
if x
, i should write this, which is noise in big code:The text was updated successfully, but these errors were encountered: