On 5/28/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Am 28.05.2005 um 14:19 schrieb Stephen Deasey: > > > > ns_parseargs {{-eightbit flag} {-foo flag} args} > > > > How do you distinguish between -eightbit which is a boolean flag, and > > -foo which is an option with a default string value of 'flag'? > > Here is how: > > ns_parseargs {{{-eightbit flag}} {-foo flag} args}
Ouch! > This is just a nested-list exercise. It is Tcl-natural and can become > difficult to write with all those curly braces, but that's the price > of the flexibility. ... > > It will confuse people who read the code, don't you think? > > I do but I do not care. I think you're optimising for the wrong thing... :-(