Hacker News new | ask | show | jobs
by OskarS 367 days ago
Fair point, but generally speaking, callbacks tend to escape the scopes they are in (if you have a callback for ”user clicked mouse”, it’s likely not going to be triggered in your current scope), so stack-allocation isn’t really an option.

But yes, fair point: they can be stack or statically allocated as well.