On Mon, Jan 09, 2017 at 08:47:17PM +0000, Robin H. Johnson wrote:
> Maybe Willy would considering changing the name of the matches to 'prefix'
> & 'suffix' instead of 'beg' & 'end', and just keep beg/end as legacy.

It's convenient to keep short names there as they're commonly used in
anonymous ACLs involving paths. Or maybe "pfx" and "sfx" ? Anyway given
that they've been available for something like 10 years I'd say I don't
feel much comfortable with renaming this "just" due to incompatibilities
between multiple namespaces. This can get worse over time. Moreover, the
Lua version already doesn't use exactly the same name as the haproxy
variant.

Another approach would be to have simple rules when mapping a namespace
to another one. For example we could easily imagine that all "map_something"
in haproxy are mapped to their exact equivalent name in Lua (thus we would
have "map_end" instead of "map.end"), or that we could prefix all these
words by "_" which would give "map._end" which is not much different from
the haproxy keyword "map_end" and easy enough to remember.

Regards,
willy

Reply via email to