On Mon, May 07, 2007 at 03:46:59PM -0000, Stephen M. McKamey wrote:
> (not to mention I think "kwparams" is an
> inelegant identifier that doesn't fit with the rest).
if you know a better name: tell me.
> I agree with Jeffrey: having just the one params object
> differentiated by type { vs [ would make more sense for me.
ok. but this would mean that you cannot mix named and positional
parameters. that would be ok for me, and I already suggested that
some time ago -- but since some people said they need this mixing,
I added kwparams...
> understood the need for mixing them anyway. It seems like an
> unneccessary complication to accommodate a very wierd usage.
here are some examples of RPC-calls with and without mixing:
(in python-syntax)
- with mixing:
sum(23,42)
sum(23,42, debug=False)
echo("test", times=10)
- without mixing, these would look like:
sum(23,42)
sum(23,42, False)
sum(s1=23, s2=42, debug=False)
echo("test", 10)
echo(content="test", times=10)
this i.e. means, that if you use parameters by-position, and want to add
a named parameter, you have to completely switch to named parameters.
so, if we don't need the "with-mixing"-sytax, we could again
drop kwparams, and always use params as array or object.
(but there **won't be mixed-parameters in params** like in 1.1WD!)
I created a poll for this.
regards,
Roland
.