Closed eserte closed 1 month ago
Thanks 1.2022 is on its way to cpanm.
This library is probably better than a homebrew smart match replacement https://toby.ink/blog/2023/07/14/matching-simply/#:~:text=If%20you're%20looking%20for,isn't%20going%20to%20disappear.
@nics I tried Toby Inkster's match::simple but it does not pass the Catmandu tests that tested all features of Catmandu::Fix::Condition::in
with smartmatching.
In particular it fails to find out if two arrays match.
https://github.com/LibreCat/Catmandu/blob/dev/t/Catmandu-Fix-Condition-in.t#L44
https://github.com/LibreCat/Catmandu/blob/dev/t/Catmandu-Fix-Condition-in.t#L53
His Syntax::Operator::Matches as I understand from the blog post relies on perl 5.38 and uses the same logic as match::simple.
With perl 5.41.x (e.g. 5.41.4) the test suite fails:
I did not do further research, but this looks like being caused by smartmatch removal from perl.