Mark E. Mallett wrote:
On Tue, Feb 08, 2005 at 04:28:06PM -0800,
ned(_dot_)freed(_at_)mrochek(_dot_)com wrote:
Without setflag I would expect to see stuff of the form
set "foo" "";
addflag "foo" "bar";
Is the first line strictly necessary? i.e. can you manipulate variables
via addflag et al if those variables haven't been instantiated?
I would think that you could.
I guess you are right (assuming the script writer is not reusing the
variable "foo"), but I am not sure I approve this as a good script
writing technique.
Whether or not this savings warrants an entire action is a judgement call.
Having implemented it I can say that for me at least supporting setflag only
amounted to about 15 additional lines of code and one additional table entry.
I think having extra stuff in the language is more the point than how
hard it is to add that extra stuff. I would also prefer not to have
verbs that aren't really needed.
I prefer to have "setflag" for consistency.