Comment on Callbacks, Synchronous and Asynchronous (2011)parentComments−bruce3434344ylambda, callback, function, closure, anonymous function, thunkIt's all pretty much the same.I like "synchronous callback" because this tells you two things:1. it's synchronous, no need to add memory barriers2. it _is_ a callback, it is called after the fact.−zelphirkalt4yCould also add "continuation" to the list perhaps, from continuation passing style (CPS). But that might not be a callback, as it never really goes back, but always goes forward.
Comments
lambda, callback, function, closure, anonymous function, thunk
It's all pretty much the same.
I like "synchronous callback" because this tells you two things:
1. it's synchronous, no need to add memory barriers
2. it _is_ a callback, it is called after the fact.
Could also add "continuation" to the list perhaps, from continuation passing style (CPS). But that might not be a callback, as it never really goes back, but always goes forward.