|
Joel Fritz wrote: > > Having programmed in Pascal and C before I learned RPG, the semicolon > doesn't seem like a big deal to me. I'm sure it's easier to write a > compiler when you have end of statement delimiters. I'd like to see code > block delimiters also. If you use them _sensibly_, they actually make your > code more readable. Good point. IMHO I prefer the single statement If then construct. with begin end markers for multiple lines. This can make the code much more concise when you only need to execute one statement in RPGIV if a <= 0 eval a=1 endif in c if (a <= 0) a=1; // no endif is needed for a single statement if (a <= 0) { a=1; b=1; } // Very clear as to where the block begings and ends pascal if a <=0 then a := 1; if a<=0 then begin a=1; b=1; end; Also to be able to place comments at any place in the code is important. John +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.