2 ms·
> On the contrary, it gives your code clarity, consistency and predictability. Well, when a product I worked on gradually migrated from event loops with callba
by SamReidHughes 11y ago
> On the contrary, it gives your code clarity, consistency and predictability.
Well, when a product I worked on gradually migrated from event loops with callbacks to threads, clarity, consistency, and predictability made big improvements. Some callback usage would have been better with C++11 or C++14, but it's still way worse than what you can do simply by having variables go in and out of scope on a stack.