Hacker News new | ask | show | jobs
by Ygg2 1793 days ago
Interesting. Why function calls over events? And is it always applicable?
2 comments

I suspect because it makes both data and control flow more explicit and traceable.

> And is it always applicable?

No heuristic is always applicable.

> No heuristic is always applicable.

Exactly. That's why it is called a heuristic and not a rule. :)

Not always applicable but it makes debugging far easier, reduces the chance of events being lost and makes it easier and safer to understand and modify code.