Re: [Hecl-devel] thought on setprops
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2007-11-22 10:19:42
|
> > -foo bar -bee bop > > > > setProps could be a little smarter and look for the -. If there is no > > trailing argument, it's assumed to be a boolean and set to 1. > > I wouldn't be a big fan of this syntax, too confusing. > To me, this would imply that setting a boolean to false > would be -noxxxx. > > Consistency is worth typing an extra '1' or '0'. Fair enough. What I didn't spell out is actually the thing that I believe may be the most important part of that change: the ability to do things like -dimensions 0 0 100 100 -foo bar -bee 1 BTW, for those interested in Hecl/Android: http://journal.dedasys.com/articles/2007/11/22/android-hecl-and-scripting -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ |