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




I have been trying to think of the pros & cons of free form vs fixed
form. Personally I would prefer to use free-form. However, trying to be
fair and balanced, I was trying to think of arguments as to why we
should not move to free form. I can't think of any. Does anybody have
any views on why a move to free-form is not a good thing?

The primary advantages to free-format are:

a) It makes it much easier to work with longer expressions, longer variable names, longer subprocedure names, qualified DS names, nested DS names, etc.

b) The ability to indent code to make it easier to read. (Though, there are ways to improve readability without doing this, and ways to view source code indented even in a fixed-format language.)


The advantages to fixed-format are:

a) You can continue to use opcodes that IBM didn't provide in free format. MOVE and GOTO are the primary ones. (Though, GOTO is not needed if your code is written in a modular fashion, and MOVE can be replaced with EVAL and BIFs in V5R2 -- in V5R1 there are things the BIFs can't do easily, so you may have to stick some fixed-format code in a subprocedure.)

b) Syntax checking is a little bit better in the source editors. (Though I haven't found it to make much difference for me.)

c) Traditional RPG programmers are used to fixed format and comfortable with writing and reading it. Many of them are not comfortable with free format. (Though, once they've used free format for awhile, they'll feel differently.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.