-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add, Subtract, Multiply Many #117
Conversation
Hi @AyoobMH Thanks for the PR! I was just thinking, maybe we can update original methods to accept variadic parameters instead?
In that way the functionality to add multiple would exists and it would not introduce any breaking changes. Of course, I would expect to do a sanity check What do you think? |
Hi @Rhymond, thanks for your efforts. I think updating original methods to have variadic parameters is even better, it wouldn't introduce any redundant code. Are you thinking of updating only |
Exactly! Yes |
Hi @Rhymond I have modified the PR and added variadic parameters. For checking parameters, I have used panic instead of an error, I believe not passing any parameter is considered a bad use of the package and should not happen during runtime. What do you think? |
@totemcaf Thanks for the review, the requested changes were made! |
Hi @Rhymond, any updated for this PR, thanks in advance! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for late response, LGTM
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
Addition, subtraction, and multiplication can only be done with single values.
What is the new behavior (if this is a feature change)?
Addition, subtraction, and multiplication using many values.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
NO
Other information:
Fixes Add/Subtract multiple amounts together #74
Credit to @SepehrAsh for opening Add Multiple & Subtract Multiple Functions Added , Some Test Added , … #78 ,but it got closed.