Skip to content

[refactor] Combine brackets and within - #73

Merged
croyzor merged 5 commits into
refactor/parser-wcfrom
acl/combine-brackets-within
Dec 23, 2024
Merged

croyzor merged 5 commits into
refactor/parser-wcfrom
acl/combine-brackets-within

Conversation

@acl-cqc

@acl-cqc acl-cqc commented Dec 20, 2024

Copy link
Copy Markdown
Collaborator

This is targetted at #68.

After some preliminary refactorings to remove Bwd in #72, I realized brackets and within were 90% the same, but resisted my first attempts to combine them ;). Changing the contract on within (here renamed helper and made local to brackets) allowed this to proceed.

Note the second commit makes explicit, using Maybe....NonEmpty an invariant that in the first commit is just comments and incomplete-pattern-matches; you may prefer the first way though.

@croyzor
croyzor merged commit 4806481 into refactor/parser-wc Dec 23, 2024
@croyzor
croyzor deleted the acl/combine-brackets-within branch December 23, 2024 09:20
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