Hi,
often in user-defined functions we have a bunch of error checks like this:
if maybe_bogus_input
funcerr("cannot do that")
endif
What about adding the if condition to the funcerr() function as a scalar
second argument? So the above would become:
funcerr("can't do that", maybe_bogus_input)
I admit right away that this is mainly one of my syntactic-sugar ideas,
to save 2/3 of the needed lines of code - because in my function
packages and addons the error and input checking block often becomes
quite long.
(However, perhaps there is even a little bit more to it, because one
could pass the extended funcerr() variant to feval() which might open up
new ways.)
Hope everybody's well!
cheers
sven