|
Joe, That is only readable if you know that A is numeric, B is alpha and the sizes of each and all of the various other RPG rules dealing with MOVE. Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Joe Pluta" <joepluta@PlutaBrothers.com> Sent by: rpg400-l-bounces@midrange.com 02/10/2003 01:16 PM Please respond to RPG programming on the AS400 / iSeries To: "RPG programming on the AS400 / iSeries" <rpg400-l@midrange.com> cc: Fax to: Subject: RE: /FREE RPG compiler errors > From: Gary Guthrie > > I've avoided this discussion for some time, but it's time to move > forward. If you can't drive the Ford, maybe you're not cut out to be a > truck driver, afterall. > > The following is NOT an opinion: Free-format RPG is better. > > There, now that that's settled, what else should we talk about? Pure free-format is not necessarily "better" than fixed-format. There are some things better, some not. And it *IS* an opinion. Replacing: MOVE A B with eval %subst(b : 2 : 2) = %editc(a : 'X'); is NOT better, in my opinion. I don't care how readable it is to a C programmer, I care how readable it is to an RPG programmer, and the former is more readable, and a lot easier to code. This is where the opinion bit comes in. Now, most of my objections would go away if they'd just allow some transitionary syntax. eval %move(a : b) eval %movel(a : b) If those were acceptable, I'd be far more likely to embrace the language, and there's no reason not to support them. You think they're unreadable? Go in and change them. But don't force your idea of readable on me. Joe _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@midrange.com 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.