Added throws in Property initialization #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The Pull Request (PR) proposed based on the feature proposal in issue #15 aims to implement a new feature that allows the execution of asynchronous commands that may generate errors during property initialization.
The PR includes an update to the Property protocol declaration, which now allows the
throws
keyword in themakeProperty
function. This means that developers can now execute code that may generate errors during property initialization.The PR also includes some updates to the syntax of asynchronous codes that may also generate errors, so that they follow the same syntax as property initialization. This standardization helps make the code more consistent and easy to understand.
With this new feature, developers now have the option to execute code that generates errors during property initialization, improving code robustness and making error debugging easier. This PR has passed unit tests to ensure that the new feature is working correctly.
Fixes #15
Type of change
Checklist