Am 17.10.2018 um 16:04 schrieb Allin Cottrell:
On Wed, 17 Oct 2018, Sven Schreiber wrote:

(One pre-requisite for this would be to finally ban the use of "=" as standing in for "==", otherwise it's next to impossible I guess.)
On the other hand, maybe the "=" itself would already be enough to signal to the parser that it's a name:
myfunc(a=5)
This of course is basically like it's done in Python (and other languages).

I reckon that's the best way to go: an identifier directly followed by a single equals sign in an argument slot should be enough to designate uniquely a named-parameter construct.

I'm not yet convinced this is worthwhile (I can see the benefit but I'm not sure it outweighs the cost), but I'm willing to be persuaded.

In any case I guess it should be noted that in Python for example there are some restrictions on the ordering of keyword args and positional args. So not every crazy permutation would have to be supported by gretl, either.

cheers,
sven