Re: [S] Is this really good programming practice?

Jeffrey J. Hallman (m1jjh00@Frb.GOV)
Fri, 27 Mar 1998 10:43:54 -0500


>>>>> "BV" == Bill Venables <wvenable@attunga.stats.adelaide.edu.au> writes:
[ an explanation of lazy evaluation ]

But is it good style? Well, you can always look at the code to see what's
going on, can't you?

> grep("eta", as.character(glm[[length(glm)]]))
numeric(0)

Oops.

At the very least, I think the documentation for glm() should say what the
default value for 'start' is. And it wouldn't hurt at all for 'eta' to have a
longer, more descriptive name.

Really, clarity of the code is almost always more important than execution
efficiency, and it's always more important than saving keystrokes for the
programmer.

Jeff

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news