Joerg Arndt on Sat, 09 Mar 2013 17:42:03 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

function defaults

The feature of all args having default 0 is
one of the few things in GP that I dislike.
I guess it is there to stay for backward compatibility.

Hence I dare to ask whether some mechanism would
be possible to disable defaults (unless given),
for individual functions.

Made up syntax:

foo(a, b)=
   \\ code...

then calling foo without both args given
should trigger an error.

(There are certainly other ways, less fugly,
to do this syntactically).

Best,   jj