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
Dyon allows you to assign a value to return, as if it was a normal local variable:
return
fn foo() -> { return = 4 return = 5 // will return 5 }
This requires -> on the function.
->
The return value outlives the arguments of the functions, unless they have a lifetime. If you assign to it, the right expression must outlive 'return.
'return
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dyon allows you to assign a value to
return
, as if it was a normal local variable:This requires
->
on the function.The
return
value outlives the arguments of the functions, unless they have a lifetime. If you assign to it, the right expression must outlive'return
.The text was updated successfully, but these errors were encountered: