× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It seems to me in that case:
if not %eof(somefile);

is easier and quicker for a person to parse than:
if %eof(somefile) = *off;

The first case it is immediately clear we expect a negative outcome of the
condition (something didn't happen). The second case evaluates a positive
condition (something equals something); we have to read the entire condition
to determine its outcome.

Was it Knuth who said that code should be written for people to understand,
and it just happens the machine executes it?

--Loyd



On Mon, Mar 1, 2010 at 10:46 AM, Kurt Anderson <kurt.anderson@xxxxxxxxxxxxxx
wrote:

Personal choice then, I guess. To me that seems excessive. You need to
create a D-spec for No.

I believe this is generally accepted as a coding technique:
If not %eof(fileName);

It's really no different.

-Kurt Anderson


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.