[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Moment of Zen



* D@i-works.com (D@i-works.com) [991001 13:02]:
> 
> Which brings up one more question: if f() is a function used in
> only one context, should it be coded to be called as (e.g.)
> 
>       f(substr($x, 0, 2), substr($x, 2))
> 

One word: code re-use.

> Why should your
> mental model $x be so inflexible as to prevent that.

It's not a matter of one's "mental model" being inflexible.
Besides, you said:
> I would always change it so the call is f($x).

Sounds like you're just as inflexible as anyone else.

The real question is, why should we argue about this?
It's really basic procedural programming methodology,
and way off-topic for this list.

-- 
John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe