|
Date: Wed, 2 Jul 2008 10:09:47 -0800
From: jamesl@xxxxxxxxxxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Standards question: What is your feeling about %found & %eof vs. %found(file) & %eof(file) ?
Joe Pluta wrote:
Anybody who has ever pontificated about "self-documenting" code
should be 100% behind the %eof(file) syntax.
Very true. And unless you REALLY WANT the "last accessed" file, and it
doesn't matter what that file is, it never hurts to qualify.
On another note, given that RPG doesn't give you indenting to show
nesting level, I always use ENDIF/ENDDO/ENDSL rather than END, and
frequently add comments to indicate which group I'm supposed to be
ending. Then again, at times, I have enough nesting levels active that
if I draw nesting lines on a printout (and I find I rarely go through a
week without having to analyze nesting at least once), I might go
through five ink colors twice.
--
James H. H. Lampert
Touchtone Corporation
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.