Re: diff. betw. equal and eq on simbols




Pascal Costanza <pc@xxxxxxxxx> writes:

> If you use EQ you tell readers of your program that you don't expect
> to compare anything but just objects. If you use EQL you tell
> readers that you expect to also deal with numbers and
> characters. And so on. This will help readers of your code to make
> assumptions about the intent of the source code and ultimately to
> better understand it. If you always use the same generic operators
> (like EQUAL) the less information you reveal about your intentions.

I almost never use eq, and therefore I'm not giving the programmer any
guarantees about symbols vs. characters vs. numbers etc. Instead I
just use eql.

I think that this is a perfectly valid approach, and I would recommend
it to others. eq is a waste of programmer time as far as I am
concerned.

-russ
.



Relevant Pages

  • Re: printing double value
    ... >>programmer. ... Most readers won't have an interest in the source code, ... Appending a decimal point will only serve a minute minority - and could ...
    (alt.comp.lang.learn.c-cpp)
  • Re: diff. betw. equal and eq on simbols
    ... >> If you use EQ you tell readers of your program that you don't expect ... If you use EQL you tell ... > I almost never use eq, and therefore I'm not giving the programmer any ... > guarantees about symbols vs. characters vs. numbers etc. ...
    (comp.lang.lisp)
  • How best to learn C++
    ... In the opinion of the readers of this NG, ... I am not looking to become a professional C++ programmer, ... knowledge of the language. ... Are formal courses a necessity? ...
    (alt.comp.lang.learn.c-cpp)
  • Re: rfc: evoting dead in 20 lines
    ... the first stage is writing the human language source code. ... from when a programmer begins writing the source code until that code ... For bugs and performance. ... the source code is analyzed by security programmers before the ...
    (misc.legal)
  • Re: rfc: evoting dead in 20 lines
    ... proprietary election software is created in two stages called ... the first stage is writing the human language source code. ... from when a programmer begins writing the source code until that code ... the source code is analyzed by security programmers before the ...
    (misc.legal)