-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: streamline purity information (#779)
### Summary of Changes Remove the option to mark callable parameters as `@Pure`, since it could collide with the impurity reasons on the containing function in various ways. Now only the context decides, whether a callable parameter only accepts pure callables or may be potentially impure.
- Loading branch information
1 parent
c15c70e
commit 75a9e5b
Showing
11 changed files
with
8 additions
and
299 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
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
10 changes: 3 additions & 7 deletions
10
packages/safe-ds-lang/src/resources/builtins/safeds/lang/purity.sdsstub
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
9 changes: 0 additions & 9 deletions
9
...ests/resources/validation/purity/callable parameter with unspecified purity/class.sdstest
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
...s/resources/validation/purity/callable parameter with unspecified purity/function.sdstest
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
...s/resources/validation/purity/pure and potentially impure callable parameter/main.sdstest
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...ang/tests/resources/validation/purity/pure parameter must have callable type/main.sdstest
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...validation/style/unnecessary pure annotation call on pure function parameter/info.sdstest
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.