File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,14 @@ The syntax follow Perl's syntax:
142142
143143## Limitations
144144
145- ### No Pattern Guards
145+ ### No Pattern Guards for ` ppx_tyre `
146146
147- Pattern guards are not supported. This is due to the fact that all match
148- cases are combined into a single regular expression, so if one of the
149- patterns succeed, the match is committed before we can check the guard
150- condition.
147+ Pattern guards are not supported in ` ppx_tyre ` . This is due to the fact that all match
148+ cases are combined into a single regular expression, so if one of the patterns succeed,
149+ the match is committed before we can check the guard condition.
150+
151+ ` ppx_regexp ` does support pattern guards by grouping cases with identical patterns
152+ and generating monadic handler functions that evaluate guards sequentially after a pattern matches.
151153
152154### No Exhaustiveness Check
153155
You can’t perform that action at this time.
0 commit comments