Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: returning to the outer loop

by nysus (Parson)
on Sep 20, 2018 at 21:56 UTC ( [id://1222758]=note: print w/replies, xml ) Need Help??


in reply to Re: returning to the outer loop
in thread returning to the outer loop

This is interesting to me. For someone like me, whose first language was Apple BASIC, I find the loop labels easier to follow and I don't understand why others feel it "obscures" the flow. I find the use of labels to be more clear, actually.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re^3: returning to the outer loop
by GrandFather (Saint) on Sep 21, 2018 at 02:18 UTC

    The issue with goto based code is that it becomes almost impossible to tell how you get from one point in the code to another which obscures the relationship and intended ordering of the code. Spaghetti coding (using gotos) just doesn't scale well. For a couple of handfuls of code it's OK, but by the time you need to take your shoes and socks off the code starts to lose structure making it hard to understand code flow.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
Re^3: returning to the outer loop
by stevieb (Canon) on Sep 20, 2018 at 22:01 UTC

    ...because you can fall out of the loop, and have no idea logically where you remain.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found