FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » terminate a PHP script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: terminate a PHP script [message #172624 is a reply to message #172601] Tue, 22 February 2011 11:54 Go to previous messageGo to previous message
sheldonlg is currently offline  sheldonlg
Messages: 166
Registered: September 2010
Karma:
Senior Member
On 2/21/2011 10:38 PM, The Natural Philosopher wrote:
> Exactly.
> some form of limited goto is always required: teh questin is how to
> wrire it best. After all consider thus staement
>
> if ()
> {
> }
> else...
> {
> }
> what is the else, but a target for a conditional jump? Just because you
> didn't write goto, doesn't mean there aint no jump.

No argument with that part. However, when I first saw if-then-else my
reaction was "Wow! That is exactly how people think. No need to do
convoluted logic with going to different labels in one case or the other
and remembering where and how I got there and what to do next."

What is done behind the scenes to implement that logic? Why jumps, of
course, to labels created by the compiler/interpreter. So what? Why
should I care? The point was to have READABLE and MAINTAINABLE code.
Since if-then-else is how people think, it is far, far, far more
readable and maintainable than jumps. That is implemented behind the
scenes that way? So what?

As for labels being confined to the scope of the function, again so
what? Jumping off a six story building will kill you just as surely as
jumping off the Empire State Building. Your blood might spatter a
little less, but you will still be dead.

--
Shelly
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Extralight browser-webserver communication via cookies (+)
Next Topic: Storing multiple character set types (or a representation of em) in a table column
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Jul 05 18:12:52 GMT 2024

Total time taken to generate the page: 0.05995 seconds