Michal Matyska wrote:
... things that explain a lot.
Thanks for that. Of course, I can't really leave it at that ;-)
OK, I know README still shows %{avp_name}.
I stopped believing what they say for 2.0.
Oh, and isn't pretty much all of the stuff in xlog obsolete since we are having selects for all of it now?
Yes... the idea was to allow using the $ and @ inside-string formating whenever you can use string. Was not done in time as it is more complex, and there is code-freeze now (for quite a long time) to let ser 2.0 get out into the masses. So maybe 2.1, maybe 3.0 (as it will change the ser.cfg's again).
I'd vote to add it to 2.1. Keep the % syntax but also allow direct $ and @. Possibly provide a mechanism that can be used by all modules through the function parameter fixups.
As for the ending of an attribute or select expression, following Bourne Shell syntax might be a good idea: It ends with a character not allowed in an identifier or by explicitely enclosing in braces (${foo} or @{foo}). This may make parsing the string somewhat more difficult, but since it happens at startup only, who cares. Maybe use Bison.
Regards, Martin