3 ms·
> That’s like expecting a local function to continue executing after a `return` statement. Well... they can![1] It's definitely a thing in traditional always-
by jiggawatts 1y ago
> That’s like expecting a local function to continue executing after a `return` statement.
Well... they can![1]
It's definitely a thing in traditional always-running web server processes, which is all people know these days.
Many developers have never written a code for a short-lived process outside of maybe school exercises. Things like CLI tools, background jobs, etc...
[1] I get "Later!" printed out... most of the time: https://dotnetfiddle.net/ng93d4 https://dotnetfiddle.net/ng93d4
- williamdclt 1y agoAlso, `defer` in go or `finally` in JS/Python