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

fix:events.js has a clerical error #9004

Closed
wants to merge 1 commit into from
Closed

Conversation

moreJs
Copy link

@moreJs moreJs commented Oct 10, 2016

Description of change

events.js has a clerical error

@nodejs-github-bot nodejs-github-bot added the events Issues and PRs related to the events subsystem / EventEmitter. label Oct 10, 2016
@bnoordhuis
Copy link
Member

'iff' is shorthand for 'if and only if'.

@moreJs
Copy link
Author

moreJs commented Oct 10, 2016

get it. thanks.

@claudiorodriguez
Copy link
Contributor

claudiorodriguez commented Oct 10, 2016

This does, however, beg the question - wouldn't it be clearer to just use if and only if?

EDIT: nevermind, iff is all over the codebase. I didn't think it was so widespread.

@bnoordhuis
Copy link
Member

It doesn't really matter here but if, say, you are documenting the preconditions of a complex algorithm, then 'iff' is less distracting than 'if and only if' spelled out ten times.

This seems to be the only place where 'iff' is used in the source. I'm fine with changing it but it's churn for very marginal benefits.

@cjihrig
Copy link
Contributor

cjihrig commented Oct 10, 2016

If we decide to move forward with this change, we should take the time to capitalize and punctuate the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
events Issues and PRs related to the events subsystem / EventEmitter.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants