in reply to Re: Re: Re: Re: Context aware functions - best practices?
in thread Context aware functions - best practices?

Okay. So am I right in thinking that the objection only really applies if the sub in question is a method of a class and therefore break when called via the subclass?


Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.

  • Comment on Re: Re: Re: Re: Re: Context aware functions - best practices?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Context aware functions - best practices?
by demerphq (Chancellor) on Jan 17, 2003 at 12:39 UTC
    Im not sure which objection you mean exactly. But my original point applies to both OO and classical-imperative programming. Basically its "dont try to out-smart your user". Its usually unnecessary given the nature of Perl, and often a PITA to work around when you find out that you the user is smarter than the original programmer anyway.

    :-)

    --- demerphq
    my friends call me, usually because I'm late....