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

Remove predicate functions from Expression #249

Open
wants to merge 44 commits into
base: breaking-changes-v8
Choose a base branch
from

Conversation

jfmengels
Copy link
Collaborator

The package is very much oriented towards using pattern matching, and I feel that these functions go against that idea. We should either do none, or do a lot more (for every node type?).

I'mp pretty sure all these functions (and more helper functions in the package) were meant to help with a very specific use-case in Elm Analyse. In this case, it was https://github.com/stil4m/elm-analyse/blob/701b8b4013a4f057b9382d368e42adc6fe08e14e/src/Analyser/Checks/UnnecessaryParens.elm#L196

I think these helper functions are likely better reimplemented in the usage code.

@jfmengels jfmengels force-pushed the breaking-changes-v8 branch 2 times, most recently from 7ccc635 to 1787a7f Compare September 12, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants