Open mlschroe opened 1 year ago
By all means.
My gut feeling says a function will find more users, but if an additional shortcut syntax in expressions seems useful then why not. But that's from somebody who never felt the need to do globs in macros/expressions, so YMMV...
I just had a use case where I needed glob matching in an rpm expression. Is that something we should add? We could define a new operator like
"string" ~~ "glob"
or hijack an existing one that currently throws an error like"string" * "glob"
. Of course we can also use a function likematch("string", "glob")
.