Reply to post: Re: Here's a PEP

Python creator Guido van Rossum sys.exit()s as language overlord

vincent himpe

Re: Here's a PEP

very funny. you need to look at assembly created by compilers.

It is full of goto statements. jump jump jump. You can't make a CPU without a JMP operation.

so i don't get the hate against 'goto'. If i am here and the next few statements do not need executing simply skip to the continuation point. Place a label there and off you go. It is up to you to make sure you don't imbalance the stack.

what is different between these two constructs :


if x = 1 then goto continue_here

do this

then that

continue_here :

some more stuff




if (x<>1) {

do this

then that


some more stuff.


The compiler still converts that if-then statement into a jump operation.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019