<div dir="auto">Brian himself told me it is on the way, there are just higher priority amber features (for example, member patterns) that need to be worked on first.<div dir="auto"><br></div><div dir="auto">Which makes sense, range patterns are incredibly useful and feel like they are filling a hole in the language, but they only apply to numbers currently. Maybe to more after Valhalla releases some stuff.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 13, 2024, 8:17 AM Red IO <<a href="mailto:redio.development@gmail.com">redio.development@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">The switch statement saw a huge transformation over the past few releases. So I was quite surprised to realize that the current switch construct can't check the range of an value.<div dir="auto">Example case x is between y and z.</div><div dir="auto">I'm most likely not the first one to notice that. Is there any discussion about adding some sort of range pattern? Would fit in the notion of the switch checking patterns quite well. </div><div dir="auto"><br></div><div dir="auto">Great regards </div><div dir="auto">RedIODev </div></div>
</blockquote></div>