On Tue, Aug 5, 2025 at 1:04 PM cesco via RPG400-L
<rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

It's really just a matter of acclimation. The fact that the very first

The "issue" with RPG is that it has not direct idiomatic construct for the common "loop through all rows till eof of this or that condition", so it is naturally that opens the flank to many interpretations.

Naturally. But given it's much easier and quicker to get used to the
language we have, than to wait and hope for it to evolve into what we
would like, I consider it a matter of acclimation.

I don't think the constructs already available in RPG are horrible,
and don't find the double-test or double-read styles of looping
objectionable. Those are very reasonable ways to express the idea in
the language we have. The test-and-exit(-from-infinite-loop) style is
merely another way to express the same idea, given the rules of the
language. And I was just trying to show how it's just as readable as
the other styles, if you loosen the "infinite loops are bad" dogma
that some people have picked up.

To launch a tangent sometimes I think RPG with its defacto integrated database would be a nice fit for having some kind of integrated LINQ , compact list and functional expressions and reductions, compiled and checked (like native I/O), a sort of improved in-the-language SQL...

Absolutely. LINQ was a blockbuster hit in C#, and if something like
that were to be implemented for RPG, it would be a very significant
advancement of the language.

John Y.

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