Question about checks for min and max values

Jay R. Ashworth jra at baylink.com
Mon Jul 25 08:18:58 PDT 2005


On Fri, Jul 22, 2005 at 06:39:39PM -0400, Brian K. White wrote:
> You think "" eq "0" is bad? You should have heard me when I first discovered 
> that "abcdefg" eq "abc"  !
> But even that is perfectly OK and logical and useful (actually _very_ 
> useful) and doesn't get in the way or cause any problems as long as you know 
> about it.

It may be useful, but I continue to assert that it is neither logical,
nor OK.

The semantics of "=" are *very* well defined in the discipline of
programming language design, and language designers override them at
their peril.  Spelling it differently (ie: "eq") doesn't *really* get
you off the hook.

IMHO.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

      "...the rough cannot be mean and the love cannot be true, and that's
      as wise as I can get at 10 o'clock in the morning."
      	-- Bill Shatner, on being an anti-hero.


More information about the Filepro-list mailing list