Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #13528
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: The goto statement in PHP |
| Date | 2014-05-05 16:44 +0100 |
| Message-ID | <050520141644252295%timstreater@greenbee.net> (permalink) |
| References | <12m67qcdacclw.zdjrtjbgfn8m$.dlg@40tude.net> <lk874j$jdn$2@dont-email.me> <5a5ko3egtigm$.hpt5q76uozk1$.dlg@40tude.net> <lk8avk$ivl$1@dont-email.me> |
In article <lk8avk$ivl$1@dont-email.me>, Jerry Stuckle <jstucklex@attglobal.net> wrote: > On 5/5/2014 11:08 AM, richard wrote: > > On Mon, 05 May 2014 10:27:36 -0400, Jerry Stuckle wrote: > > > >> On 5/5/2014 9:50 AM, richard wrote: > >>> In Liberty BASIC (LB) we also have branched goto labels. > >>> As I was reading the goto manual on php.net I see where they make no > >>> distinction between a label and a variable. > >>> In LB it is simple. > >>> a=0 is a distinct variable. > >>> [a] is a distinct label. > >>> > >>> When goto [a] is encountered, it matters not what or where the variable > >>> "a" is. > >>> > >>> I'm just suggesting that they need a means to distinguish the pair. > >> Better yet - don't use goto. I never have needed it. > > > > Yeah I know. I've heard it a zillion times before. > > "Any language that uses a 'goto' is one that is screwed up". > > But hey, there are times when the evil is required. > > > > I recall a scene from a movie. > > Dozens of federal agents armed to the teeth break into a hacker's > > residence. > > He's busy trying to erase all of his hard work so they have no evidence. > > "No you got it wrong boy. We're not here to bust you. This time. We're to > > hire you!". > > Purely for the drama of course. > > Nope, goto is NEVER "required". Sometimes it's handy, but never required. I was about to say that I hadn't used a goto since I stopped using FORTRAN in 1978, but then I remembered that I had to use a flavour of Pascal on a PDP-11 in 1982, and as that had no return statement, I had to simulate one by putting a 999 label on the final 'end', and goto that. -- Tim "That excessive bail ought not to be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
The goto statement in PHP richard <noreply@example.com> - 2014-05-05 09:50 -0400
Re: The goto statement in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2014-05-05 10:27 -0400
Re: The goto statement in PHP richard <noreply@example.com> - 2014-05-05 11:08 -0400
Re: The goto statement in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2014-05-05 11:33 -0400
Re: The goto statement in PHP Tim Streater <timstreater@greenbee.net> - 2014-05-05 16:44 +0100
Re: The goto statement in PHP Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-05-06 00:57 +0000
Re: The goto statement in PHP Richard Yates <richard@yatesguitar.com> - 2014-05-05 19:06 -0700
Re: The goto statement in PHP Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-05-06 17:23 +0000
Re: The goto statement in PHP Graham Hobbs <ghobbs@cdpwise.net> - 2014-05-07 11:13 -0400
Re: The goto statement in PHP The Natural Philosopher <tnp@invalid.invalid> - 2014-05-07 20:07 +0100
Re: The goto statement in PHP Tim Streater <timstreater@greenbee.net> - 2014-05-07 20:16 +0100
Re: The goto statement in PHP Norman Peelman <npeelman@cfl.rr.com> - 2014-05-06 22:02 -0400
Re: The goto statement in PHP Arno Welzel <usenet@arnowelzel.de> - 2014-05-09 10:30 +0200
Re: The goto statement in PHP Arno Welzel <usenet@arnowelzel.de> - 2014-05-09 12:00 +0200
Re: The goto statement in PHP Mi Na <ya12983@mail.com> - 2021-07-23 00:55 -0700
csiph-web