Re: COBOL is dynamic (depends)




Frank Swarbrick wrote:

I think you'll have to admit that you can't just glance at that and see what
it is actually doing, while my original example is probably readible even by
a non-programmer.

What one can understand at a glance depends entirely on what one is
used to.

I do a _lot_ of table driven code, often by tables in configuration
files. So, yes, I can glance at table driven code and see what it is
actually doing. In fact if I was doing this for a serious project I
would probably have the field offsets and lengths in a configuration
file along with the specifiers about which set of offsets to use and
then the code could deal with other variations.

.