× 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.



Rory Hewitt wrote:

Since you lose nothing by including the file name (unless, as someone
pointed out, you could have just read one of a number of files, but that's a
pretty rare in my experience), I'd say have your standard be to use the
file-name qualifier.

Seems to me that that sentence identifies the qualities that would bring it into a "standards" discussion.

1. The %eof/%found usually ("standard") refers to a particular I/O operation on a particular file.

2. ...unless ("exception") you could have just read one of a number of files.

IOW, have the "standard" reflect whatever alternative is 'standard' rather than an 'exception'. If it refers to a particular file /usually/, then make it the "standard" to include the file name.

You can get an additional benefit during maintenance and perhaps at other times due to explicit references. While it might appear cumbersome at first for some, almost any standard will become easy to interpret after it's used a number of times.

Tom Liotta


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.