[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Empty functions
- From: "Adam D. Moss" <adam@...>
- Date: Sun, 29 Jun 2003 20:39:31 +0100
Tom Spilman wrote:
No, I don't believe so -- since 'everything' is dynamic, it
can't know that a function is empty until the moment it's
if ( function ) then function() end seems the way to go then.
Personally I wouldn't worry about it -- just call the empty
function. If we preferred performance to clarity and ease, most
of us wouldn't be using a scripting language in the first place!
Adam D. Moss . ,,^^ firstname.lastname@example.org http://www.foxbox.org/ co:3
"When I was young, I would break down and cry whenever mom made me
throw an empty toilet paper tube in the trash can. I just imagined
it sitting at the dump, all cardboard and sad." -- T.Farnon