3 ms·
It was somewhat dependent on your job, although the norm is no recursion. From Wikipedia "other compilers, like IBM COBOL, will produce code that prints "1 2 3
by araes 3y ago
It was somewhat dependent on your job, although the norm is no recursion.
From Wikipedia "other compilers, like IBM COBOL, will produce code that prints "1 2 3 END END END END ..." and so on, printing "END" over and over in an endless loop." [1]
Also, having never used COBOL, the PERFORM statement is pretty cool. Like calling arbitrary parts of a Switch statement with a single line. Would be neat if some other languages had that.
[1] https://en.wikipedia.org/wiki/COBOL#Procedures https://en.wikipedia.org/wiki/COBOL#Procedures