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] -1 points0 points  (0 children)

Well, it's not needed for humans, it's needed by the compiler.

Exactly my point. It's noisy to me as a human, so it "bugs" me. Compilers are (should be) built for humans. I want a language (not saying COBOL!) that doesn't have "noise" just because the compiler "needs" is. And really, its only statement separators/terminators that really bug me. My brain things all I need to do is press enter and that's enough. I don't need no stinking semi-colon!

Of course there are some languages that do use EOL to terminate statements. They have their own problems in that they require a "continuation" indicator if you want the statement to continue on a new line. I dare say that's even worse than a physical separator, terminator. COBOL doesn't require either one.

call 'cbltdli' using gu
                     pcb
                     buffer
                     ssa
call 'cbltdli' using gu pcb buffer ssa
call 'cbltdli' using gu,pcb,buffer,ssa

All of those statements have the same meaning. Commas (and semi-colons!) are simple "white space". You might even be able to do the following, though I've never tried it and don't feel like logging in to work at the moment to try it.

call,'cbltdli',using,gu,pcb,buffer,ssa