Title: RE: defining 'constants' at run time

Rodent of Unusual Size on 03 March 2004 19:17 said
> A. Pagaltzis wrote:
> >
> > Offtopic rant: why do people want/use OO for things like these???
> > Why not simply have a Foo::mkconst() ?
>
> response rant: why do people always assume that they know better
> what is being attempted than the person writing the code?  there's
 a reason i'm using o-o; let's accept that and leave it at that.

Well, people who spend a lot of time on the message boards helping out get a lot of questions like:

   "How can I replace every letter 'o' not preceded by 'f' and not followed by an 's' without using index, subtr, or a regex."

The useless answers are typically things like

   "Very very carefully"
   "With a piece of camembert and a two foot length of string"

The useful answers are typically like

   "Why on earth do you want to do such a silly thing. USE THE FRIGGIN REGEX ALREADY."
 
So when someone helpful like Aristotle sees something that looks like this he homes in on it.  Dont forget he offered help for free, and part of that help involved questioning why you are doing something that looked dumb. I cant see any reason to do more than explain why you are using OO for this so that he can help you better.

Cheers,
Yves

Reply via email to