Hacker News new | ask | show | jobs
by chrismorgan 1017 days ago
Goto is control flow. You can’t do control flow with function calls in the sorts of languages we’re talking about, so goto has to be built into the language, typically as a statement.

(In some of these languages you can do awful hacks like using hooks intended for debuggers <https://entrian.com/goto/> or rewriting bytecode <https://github.com/snoack/python-goto>, and frankly what Svelte does is quite similar, just implemented as a compilation step rather than at runtime.)

1 comments

I assumed this was talking about the goto statement in Svelte which is navigation method. If not that's fine