Skip to content

Clarify text in Expansion Algorithm step 12 regarding variable initialization #215

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

Closed
kasei opened this issue Nov 20, 2019 · 2 comments · Fixed by #217
Closed

Clarify text in Expansion Algorithm step 12 regarding variable initialization #215

kasei opened this issue Nov 20, 2019 · 2 comments · Fixed by #217

Comments

@kasei
Copy link
Contributor

kasei commented Nov 20, 2019

5.1.2 Expansion Algorithm step 12 says:

Initialize two empty maps, result and nests. Initialize input type to the last value of the first entry in element expanding to @type, ordering entries lexicographically by key.

Should the text regarding input type include what to do if no such value exists (e.g. if no entries in element expand to @type)?

@gkellogg
Copy link
Member

I'll add "(if any)".

@gkellogg
Copy link
Member

The implication is that if it doesn't exist, it is null/undefined. I think this would be a common interpretation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants