callback
All posts containing the 'callback' tag
So, I came across something pretty interesting while coding in Python today. I was writing a system in which I have to pass a function as an argument to be called later; a.k.a. a callback. I’ve done this in a lot of different contexts in languages like Python, PHP, JavaScript, Java, and ActionScript, so that’s why I was taken aback by my experience today.
I have one class which takes a function or a list of functions for calling later; the signature of the function will look like this:
READ MORE