-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarifications to dictionary semantics
This rewrites some of the text around dictionaries to clear up the confusion in #852, as well as generally try to smooth out the reading experience and definitions. Concrete changes: * Rewrote "dictionaries are always passed by value" to be more specific and clear. * Moved "dictionaries must not be used as the type of an attribute or constant" near the top of the dictionary section, commensurate with its importance. * Removed the terms "present" and "not present"; instead we can use Infra's "exists" for maps. * Fixed several cases where the overload resolution algorithm discussed arguments being "not present", even though that was only defined for dictionaries. Instead it now correctly talks about "missing". * Rewrote the discussion of required dictionary members and dictionary members with default values to make it clear how they contribute to the dictionary's entries. * Added a note to the IDL-to-ES conversion algorithm for dictionaries explicitly pointing out that default-value dictionary members will always be present, and thus always show up in the output. Closes #852. Closes #524.
- Loading branch information
Showing
1 changed file
with
63 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters