Crippled syntax for BuildFunction
Brought to you by:
franzg
According to both code and documentation,
BuildFunction requires a second parameter containing
the "text" of the function itself. It might be cleaner for
reading if this was split in two different parameters, one
for the list of arguments and the other for the function
body.
Logged In: YES
user_id=328337
BuildFunction has been modified in order to receive two
arguments for the function body: the first (args) is the list of
function arguments - which can be either a string or a
sequence, and the second is the actual function body.
Neither of the parameters has to be surrounded in brackets,
thus making CLIPS function declaration more clear.
Users should be warned that this can lead to code breakage
with PyCLIPS versions prior to 1.0_05 (next release).
This RFE will be closed upon next file release.
Logged In: YES
user_id=328337
The actual implementation will require that the function body
be surrounded by brackets (not the argument list, which can
be also a sequence) in order to be more coherent with other
declarative functions.
Logged In: YES
user_id=328337
The syntax has changed as of version 1.0_05.