From: Stephen D. <sd...@gm...> - 2005-05-28 13:50:47
|
On 5/28/05, Zoran Vasiljevic <zv...@ar...> 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'? >=20 > Here is how: >=20 > ns_parseargs {=10=10{{-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... :-( |