On Fri, Dec 11, 2015 at 02:41:49PM +0000, Phil Mayers wrote:
As an example, the built-in cache module involves a (IMO) fairly ugly set of constructs relying on control attributes to distinguish between check, lookup, set and delete.
if (cache.exists %{Key}) { othercache.delete %{Other-Key} }
...as opposed to:
Exactly. Parameters are used at the moment for modules and policies, just in a really ugly way by having to set or read temporary attributes. It's much the same way as you use parameters for C functions, but behind the scenes those values get put into CPU registers. The parameters are much easier to comprehend (assuming the syntax is sane). Cheers, Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>