Just a minor point: unlang accepts the syntax if (Foo !* "any") { ... } but it doesn't behave in the same way as !* in a 'users' file. =* and !* are not documented as being available as comparison operators in unlang (only as filtering operators), and there's no particular need for them since you can instead write if (!Foo) { ... } But I think it would be better if it rejected them outright as a syntax error if you tried to use them. It has caused some local confusion recently. Regards, Brian.
Brian Candler wrote:
Just a minor point: unlang accepts the syntax
if (Foo !* "any") { ... }
but it doesn't behave in the same way as !* in a 'users' file.
OK.
But I think it would be better if it rejected them outright as a syntax error if you tried to use them. It has caused some local confusion recently.
Generating a syntax error is problematic, as the parsing is done at run time. I can go poke it so that the complaints about an unsupported operator are more visible in debugging mode. Alan DeKok.
participants (2)
-
Alan DeKok -
Brian Candler