|Syntactic Confectionery Delight
Re: using smartmatch for range matchingby ikegami (Patriarch)
|on Nov 26, 2023 at 17:51 UTC
If you want to keep the $number ~~ [1416..1494] notation without the inefficiencies of it and the problems inherent with using smart-matching, you could use
But I would use the following instead:
Its buggy due to a broken design, and it's being removed in 5.42.
5.10: Somehow introduced despite the known broken design.
There's a clear path towards removal. And the above severely understates the chaos the feature has caused. The feature and chaos resulted in the creation policies to make new features experimental, backed with the creation of a formal system for warning when experimental features are used. They also caused the policies for backwards compatibility and the breakage thereof to be formalized. Finally, the above doesn't mention the various pushes to have the failed experiment removed, attempts that were stymied by the presence of a large user base.