Skip to content

Comments

Remove predicate functions from Expression#249

Open
jfmengels wants to merge 44 commits intobreaking-changes-v8from
remove-expression-helpers
Open

Remove predicate functions from Expression#249
jfmengels wants to merge 44 commits intobreaking-changes-v8from
remove-expression-helpers

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 from eff82e1 to 0f43132 Compare August 7, 2024 15:59
@jfmengels jfmengels force-pushed the remove-expression-helpers branch from 829a0fd to b9e532a Compare August 7, 2024 16:11
@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