-
-
Notifications
You must be signed in to change notification settings - Fork 36
Clarify option resolution regarding fallback option values #1054
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
Conversation
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.
The current indentation is intentional, and options resolving to fallback values are meant to be left out of res
. This was most recently discussed in #903 (comment).
Rather than changing the algorithm, we should probably add a note about this.
Added a note explaining the fallback resolved values are not valid options and the option is thus omitted. I also reworded the emit-bad-option step to make it not look like an if statement missing an else
rv
is a fallback value
@eemeli I added the note you suggest. I also reworded the step in question to not make it look like an "if XXX" step in the algorithm (leading to the commenter's query about "where's the else"). See what you think. |
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.
See inline for a few necessary fixes; otherwise good.
Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
Fixes #1053.