Operator precedence and #777
Kristian Lyngstol
kristian at varnish-software.com
Tue Sep 21 17:24:40 CEST 2010
Basic problem:
(!foo ~ "bar")
no longer works in trunk. It used to mean the same thing as:
(!(foo ~ "bar"))
or
(foo !~ "bar")
However, this might not be in line with general operator precedence. It
might be more natural - all though perhaps less practical - to have it
mean:
((!foo) ~ "bar")
Obviously, that specific example yields code that doesn't actually make
sense. But it's more consistent with what I'd expect.
Slink also pointed out that it might make sense to have a clearly defined
operator precedence list.
My suggestion is: Make sure (!foo ~ "bar") works as it used to in 2.1, but
we should consider either disallowing it (like trunk does right now), or
changing the meaning.
Input?
- Kristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20100921/ef90e87b/attachment-0003.pgp>
More information about the varnish-dev
mailing list