Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

@pure annotation should also cover the case that a function is not pure but has no side effects #976

Open
lars-reimann opened this issue Jul 9, 2022 · 0 comments
Labels
enhancement 💡 New feature or request purity Inferring the purity of functions

Comments

@lars-reimann
Copy link
Member

Is your feature request related to a problem?

A function without side effects can at least be eliminated if its result is not used.

Desired solution

Replace @pure with @purity. The user can than choose between the variant pure and no side effects.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

@lars-reimann lars-reimann added the enhancement 💡 New feature or request label Jul 9, 2022
@lars-reimann lars-reimann moved this to Backlog in API Editor Jul 9, 2022
@lars-reimann lars-reimann removed this from API Editor Mar 5, 2023
@lukarade lukarade added the purity Inferring the purity of functions label Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement 💡 New feature or request purity Inferring the purity of functions
Projects
None yet
Development

No branches or pull requests

2 participants