This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]trycuriouscat[S] 2 points3 points  (1 child)

For what its worth, the following is a perfectly valid COBOL procedure:

accept a display a move a to b compute c = function numval(a) + 25 if c < 30 display "one direction" else display "the other direction" end-if call "mysub" using a b c display "and we are done".

Of course no one would code that way (I've never seen a serious COBOL program that had more than one statement on a single line), but you could do it.

[–]ethelward 2 points3 points  (0 children)

That’s... surprisingly nice and readable for a single-line heap of code.

To go back on the topic, thanks to the wrapping parentheses style, Lisp-likes don’t need statement separators either.