Am 28.05.2005 um 16:26 schrieb Zoran Vasiljevic:


So what's from above: cut toes, drill holes, buy shoes or dismount ??


I will answer this myself: cut toes!

Lets KISS (Keep It Simple and Stupid).

There are no boolean flags.
There are no choice lists.
There is no other type of checking.
We only check "-" prefixed arguments to be optionally set (or not)
We allow defaults for opional args.

Pros:

o. all is already in place (we do not need to write anything more)
o. we are keeping Tcl philosophy of typeless arguments
o. it is easy to write/code

Cons:
o. all checking (except for parsing-out optional args)
   must be done by the programmer him/herself

I knew that this damn checking will lead us to complications.
Therefore: forget it.
What do you think? Ouch again?

Zoran


Reply via email to