Skip to content

Commit ff2d059

Browse files
committed
mention StructuralPartialOrd future possibility
1 parent 23bab23 commit ff2d059

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

text/0000-constants-in-patterns.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,4 @@ None at this time.
307307
These pattern aliases could even have binders.
308308
- Eventually we might want to allow matching in constants that do *not* have a structural equality operation, and instead have completely user-defined matching behavior.
309309
By rejecting matching on non-structural-equality constants, this proposal remains future compatible with such a new language feature.
310+
- In the future, we could consider allowing more types in range patterns via a further opt-in, e.g. something like `StructuralPartialOrd`.

0 commit comments

Comments
 (0)