Skip to content

Support multiple trailing arguments #365

New issue

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

Merged
merged 2 commits into from
Jan 29, 2019
Merged

Conversation

svyatonik
Copy link
Contributor

The rules are exactly as in C++: if you need to pass value of some optional argument, you must also pass values for all previous optional arguments. So there's no ambiguities with that.

This PR supersedes the pzec_dependency_multiple_trailing_args branch, but please do not delete it - we'll need to update parity-zcash once/if this PR is merged. I'll delete it by myself later.

@svyatonik
Copy link
Contributor Author

cc @ascjones

Copy link
Contributor

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

I just noticed that we don't use Trailing for optional parameters - this doesn't allow us to have required, but nullable parameters.
I'll log that as a separate issue.

@ascjones ascjones merged commit 80205d4 into master Jan 29, 2019
@ascjones ascjones deleted the multiple_trailing_args branch January 29, 2019 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants