It seems Fortran is not FORTRAN.C and C++ have goto. Pascal and Object Pascal do as well. It's sometimes useful (Oh, no! Sacrilege!).
It seems Fortran is not FORTRAN.C and C++ have goto. Pascal and Object Pascal do as well. It's sometimes useful (Oh, no! Sacrilege!).
Yes, I always knew Fortran as FORTRAN.(And Basic as BASIC).
FORTRAN without GOTO is Fortran.(A bit of trivia. Before Fortran 90, the language is officially spelled FORTRAN, for Fortran 90 and later, it is spelled Fortran.)
It is interesting to see the same tired GOTO discussion being promulgated 70 years after Edsger Dijkstra wrote "GOTOs, considered harmful". The mass phobia of GOTO has always been unfounded. A GOTO is a valid way of exiting any logical block of code, but should never be used to enter a logical block. Unconditional jumps are in the machine code for valid reason.
Some people like to exchange opinions. I don't share such a hobby, but I understand it.tired GOTO discussion
Nothing else exists. A loop construct of some language is also made of jumps.I like GOTO and I'll defend your right to use it. GOTO is the mother of all instructions. GOTO is the foundation of modern computing.