Hacker News new | past | comments | ask | show | jobs | submit login

PHP is ubiquitous, and now I can be more easily targeted by languages that can compile to PHP. They must have had a use-case in mind when adding it, because it's a lot of work for nothing otherwise.



The standard Acceptable Goto is used to throw control between levels of a multiply-nested loop.

See also: call/cc for managing control flow in a tangle of mutually recursive functions.


But it's not "a lot of work" to implement at all!

All of the standard 'structured programming' constructs (if, while, for, switch, etc.) are just wrappers around conditional jumps in nearly every imperative language. switch even uses labels for fuck's sake!


I'll give you a point if you become more polite.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: