Skip to content
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

Support more than two operands in OperatorNode for addition and multiplication #751

Merged
merged 2 commits into from Nov 13, 2016

Conversation

FSMaxB
Copy link
Collaborator

@FSMaxB FSMaxB commented Nov 13, 2016

See #739

This is in preparation for the next step, where the conditions will get
complexer than a simple switch case.
Only for multiplication and addition though.
parens = false;
}

parensArray.push(parens);
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe you can use var parensArray = args.map(function () {}) instead of a forEach and parensArray.push?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wasn't too familiar with Array.prototype.map. I'll take a look at it tomorrow.

Copy link
Owner

Choose a reason for hiding this comment

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

you will love it ;)

@josdejong
Copy link
Owner

Looks good 👍 You could replace forEach with map in a couple of places, feel free to change this later on, I will merge your work now.

I will adjust add and sum coming week to accept more than two arguments and do a release then.

@josdejong josdejong merged commit abd383f into develop Nov 13, 2016
@josdejong josdejong deleted the multiple-operators branch November 13, 2016 18:58
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

2 participants