6 ms·
>If your one of the people who hyperventilates when you see a goto because you learned that it was considered harmful in programmer school then Cobol might not
by Bayart 7y ago
>If your one of the people who hyperventilates when you see a goto because you learned that it was considered harmful in programmer school then Cobol might not be for you. ;)
I don't know, at this point seeing a GOTO in my « native language » (the C language) is so incredibly weird that my first thought is « this guy is trying to do something weird and interesting ». It just wouldn't cross my mind somebody would be using a GOTO as a result of ignorance or laziness.
- jacoblambda 7y agoReally? Not trying to be derisive, just surprised. One of the common paradigms in C is GOTO for cleanup and error handling. I know it can be avoided if you really try however when used correctly, it can greatly improve the readability of code.
- sjburt 7y agoC gotos are scoped to the function, making them fairly reasonable to use. COBOL and FORTRAN have global gotos.
- lonelappde 7y agoReal programmers use INTERCAL's COME FROM
- jacoblambda 7y agoOh lord, it's been a while since the last time I've heard someone mention INTERCAL.
- WorldMaker 7y agoThat language with no pronounceable acronym remains an important teaching tool for programming language learning and design.