[enhancement][DSLX] Support ..=
inclusive range so pattern matches can use inclusive max value
#1904
Labels
..=
inclusive range so pattern matches can use inclusive max value
#1904
What's hard to do? (limit 100 words)
Right now you can't do a pattern easily like:
s8:0..s8:127 =>
with an inclusive maximum value for a type because the 127 is excluded and the type is incapable of expression 128. Rust has..=
to help with this.Current best alternative workaround (limit 100 words)
Add another pattern to match arm with | like
s8:0..s8:127 | s8:127 =>
Your view of the "best case XLS enhancement" (limit 100 words)
We add
..=
support to pattern ranges as well.The text was updated successfully, but these errors were encountered: