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
Currently rewriters don't distinguish between failing to match and successfully returning a value of nothing.
nothing
I want to use this pattern:
y = r1(expr)::Union{Nothing, Some{Expr}) return isnothing(y) ? y : nothing : r2(something(y))
Rewriters could be Some-aware and unwrap these values internally with something(x).
Some
something(x)
Base.get
get
Union{Nothing,Some}
Base.maybetake!
The text was updated successfully, but these errors were encountered:
cc @shashi
Sorry, something went wrong.
No branches or pull requests
Currently rewriters don't distinguish between failing to match and successfully returning a value of
nothing
.I want to use this pattern:
Rewriters could be
Some
-aware and unwrap these values internally withsomething(x)
.References
Base.get
WIP/RFC: add 2-argumentget
returningUnion{Nothing,Some}
JuliaLang/julia#34821Base.maybetake!
add maybetake! and tryput! JuliaLang/julia#41966The text was updated successfully, but these errors were encountered: