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
We cannot currently combine positional-argument-destructuring and kwarg-with-defaults-in-terms-of-arguments. Namely, this works
f(x; y = x) = (x, y)
but this doesn't
julia> g((x, x´); y = x) = (x,y) g (generic function with 1 method) julia> g((2, 2)) ERROR: UndefVarError: x not defined
I have needed this functionality today, and I think it makes sense to provide it. The use case was something like this
function process_filtered_pairs((xs, ys); xmin = minimum(xs), xmax = maximum(xs)) pairs = [(x, y) for (x, y) in zip(xs, ys) if xmin <= x <= xmax] # process pairs end
The text was updated successfully, but these errors were encountered:
Yes I'm pretty sure this should work. Seems like a lowering pass ordering kind of issue.
Sorry, something went wrong.
No branches or pull requests
We cannot currently combine positional-argument-destructuring and kwarg-with-defaults-in-terms-of-arguments. Namely, this works
but this doesn't
I have needed this functionality today, and I think it makes sense to provide it. The use case was something like this
The text was updated successfully, but these errors were encountered: