-
-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[lang]: use keyword arguments for event instantiation (#4257)
This commit changes event instantiation from taking positional arguments to taking keyword arguments. For backwards compatibility (and to ease users into v0.4.1), this implementation is fully backwards compatible with the existing positional arguments syntax, but a warning will be emitted if the old syntax is encountered. All unit tests have been updated to use keyword arguments for events, so passing tests give us a lot of confidence the change is correct. In addition, a new unit test was added verifying that positional arguments still compile and work as expected. Misc/refactors: - Factor out `validate_kwargs()` from `StructT._ctor_call_return()` - Rewrite the kwarg validation code for clarity - Add `__sub__` and `__isub__` dunders to `OrderedSet` --------- Co-authored-by: Charles Cooper <[email protected]>
- Loading branch information
1 parent
0e29db0
commit ebe3c0c
Showing
22 changed files
with
290 additions
and
138 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
Oops, something went wrong.