[Varnish] #777: Documentation on regex with new if parser
Varnish
varnish-bugs at varnish-cache.org
Tue Sep 21 17:19:25 CEST 2010
#777: Documentation on regex with new if parser
----------------------+-----------------------------------------------------
Reporter: hp197 | Owner: kristian
Type: defect | Status: new
Priority: lowest | Milestone:
Component: varnishd | Version: trunk
Severity: minor | Keywords:
----------------------+-----------------------------------------------------
Comment(by kristian):
Hmm, right.
This requires some thought, we're discussing it at the moment.
The problem is:
{{{
if (!foo ~ "bar")
}}}
used to mean the same thing as:
{{{
if (!(foo ~ "bar"))
}}}
However, that is counter to what many would expect from typical operator
precedence, and it might be "more correct" to have it mean:
{{{
if ((!foo) ~ "bar")
}}}
Which, in turn, doesn't really make sense to write at all.
I'll drop a mail to the -dev list and see what happens.
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/777#comment:6>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list