The sky is falling, the sky is falling!!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: The sky is falling, the sky is falling!!

Post by superdezign »

jackpf wrote:But surely you could do this instead:

Code: Select all

 
$break = false;
while ($something && $break !== true)
  while($someother && $break !== true)
    if ($somecondition) $break = true;
 
Goto would use less code...but still, it's not necessary.
If less code improves readability, then it's good.

I don't see what the big deal is... On the back-end, all if statements and loops are essentially goto statements anyway. Just cleaner. If goto statements were to be used for an entire project, then it would certainly make things look less organized. But, all of the examples that you guys have given mesh goto with current standards. If the existence of goto causes programmers to go back to our prehistoric roots of assembly, then it'd be negative.

However, open source is like democracy. If a policy helps some people and doesn't affect the opposition, there's no reason to deny the policy. This can be seen in desegregation, women's rights, and eventually gay marriage.

See that? GOTO statements = gay marriage. Who'da thought? :D
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: The sky is falling, the sky is falling!!

Post by jackpf »

Lol. Nice analogy.
Post Reply