Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Collection is Immutable & Operations Pure #122

Merged
merged 4 commits into from
Jul 5, 2021

Conversation

AlexandruGG
Copy link
Collaborator

Collection claims to make use of pure functions and immutability; this PR introduces annotations so that this can be verified via static analysis.

Note: there is still scope to improve on this and use pure-callable instead of callable in places where a pure callable should be provided: https://psalm.dev/docs/annotating_code/supported_annotations/#psalm-pure.

@AlexandruGG AlexandruGG changed the title Show Collection is Pure Show Collection is Pure & Immutable Jul 5, 2021
@AlexandruGG AlexandruGG changed the title Show Collection is Pure & Immutable Show Collection is Immutable & Operations Pure Jul 5, 2021
@AlexandruGG AlexandruGG marked this pull request as ready for review July 5, 2021 11:18
@AlexandruGG
Copy link
Collaborator Author

@drupol I think you'll like this one 😉

@drupol
Copy link
Collaborator

drupol commented Jul 5, 2021

Thanks!

@drupol drupol merged commit 00f0c55 into master Jul 5, 2021
@drupol drupol deleted the feature/pure-collections branch July 5, 2021 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants