-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): Provide default value for Actions
Actions were inspired by Python and Python does not implicitly default any field when an action is given. From a Builder API perspective, this seemed fine because we tend to focus the Builder API on giving the user all information so they can make their own decisions. When working on the Derive API, this became a problem because users were going to have to migrate from an implied default to an explicit default when a common default is good enough most of the time. This shouldn't interfere with Builder users getting more details when needed. This also highlighted two problems - We set the index for defaults - We don't debug_assert when applying conditional requirements with a default present
- Loading branch information
Showing
3 changed files
with
99 additions
and
26 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
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
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