Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Number of times I've used goto in Perl

by LanX (Archbishop)
on May 06, 2018 at 21:57 UTC ( #1214128=note: print w/replies, xml ) Need Help??

in reply to Number of times I've used goto in Perl

Many times!

Most languages are full of "gotos", they are just hidden behind other expressions like break or throw (yes exceptions are gotos, think about it)

The fact that most useful cases of flow control can be solved without goto doesn't mean all useful cases are covered.

It's like not giving heroine to a terminal cancer patient, because he could get addicted.

Don't let religion rule over logic.

Even if prophets like Wirth and Dijkstra preached against it.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Number of times I've used goto in Perl
by Anonymous Monk on May 07, 2018 at 08:17 UTC
    yes exceptions are gotos, think about it
    Some people even used to criticise exceptions by stating that they are like INTERCAL's COMEFROM.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214128]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2019-10-14 11:14 GMT
Find Nodes?
    Voting Booth?