logoalt Hacker News

simias • today at 1:53 PM • 3 replies • view on HN

>PHP uses longjmp()

Well off to a good start here.


Replies

mort96 • today at 3:18 PM

It's not exactly uncommon, it's basically C's equivalent to exceptions. It lets you avoid having to do an extra error checking branch after every fallible operation and can quite significantly speed up the happy path of a language VM.

➕ show 3 replies
wren6991 • today at 6:08 PM

Not that uncommon for a language interpreter? Pretty sure MicroPython does some setjmp/longjmp for non-local returns.

the_mitsuhiko • today at 3:30 PM

Never use Ruby then.

➕ show 2 replies