dotkpay Posted May 19, 2011 Share Posted May 19, 2011 Hello, I just stumbled upon this utility "goto" that enables a script skip code to a certain labeled point, it really works for me but my worry is that such functions may be eliminated in future versions of php and I would have to almost rewrite or restructure my programs to work in future php versions. How durable are such functions, it only started in php 5.3 Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/ Share on other sites More sharing options...
trq Posted May 19, 2011 Share Posted May 19, 2011 Considering it's only new, I would say it will be around for a while. At least any version of > 5.* Still, goto is not something I have ever thought I needed, I can think of better ways of doing things. Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/#findComment-1217413 Share on other sites More sharing options...
JonnoTheDev Posted May 19, 2011 Share Posted May 19, 2011 My god 'goto' is back. I can print my name infinately on the screen again with 2 lines of code. They must have brought it back for when you are working on this new baby: http://www.crunchgear.com/2011/04/05/modernized-commodore-64-pc-will-confuse-co-workers/ Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/#findComment-1217419 Share on other sites More sharing options...
conan318 Posted May 19, 2011 Share Posted May 19, 2011 My god 'goto' is back. I can print my name infinately on the screen again with 2 lines of code. They must have brought it back for when you are working on this new baby: http://www.crunchgear.com/2011/04/05/modernized-commodore-64-pc-will-confuse-co-workers/ i miss my 64 Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/#findComment-1217432 Share on other sites More sharing options...
KevinM1 Posted May 19, 2011 Share Posted May 19, 2011 When I was trying to get my CS degree, 'goto' was considered a four letter word. If you're thinking about using it, your design is bad. Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/#findComment-1217495 Share on other sites More sharing options...
spiderwell Posted May 19, 2011 Share Posted May 19, 2011 When I was trying to get my CS degree, 'goto' was considered a four letter word. If you're thinking about using it, your design is bad. yes, 'goto' the naughty step Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/#findComment-1217524 Share on other sites More sharing options...
Maq Posted May 19, 2011 Share Posted May 19, 2011 Hello, I just stumbled upon this utility "goto" that enables a script skip code to a certain labeled point, it really works for me but my worry is that such functions may be eliminated in future versions of php and I would have to almost rewrite or restructure my programs to work in future php versions. How durable are such functions, it only started in php 5.3 Avoid using that operator as it will only cause problems, have a good design instead. Quote Link to comment https://forums.phpfreaks.com/topic/236830-goto/#findComment-1217597 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.