Re: The goto statement in PHP [message #185772 is a reply to message #185734] |
Wed, 07 May 2014 15:13 |
Graham Hobbs
Messages: 42 Registered: September 2010
Karma:
|
Member |
|
|
On Mon, 05 May 2014 10:27:36 -0400, Jerry Stuckle
<jstucklex(at)attglobal(dot)net> 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.
Just reminds me of the 'sphagetti' code' days.
Graham Hobbs
|
|
|