From this answer ( What is a handler ) I understand that a handler:
A handler is a method / method / method that specializes in a particular type of data or focuses on specific special tasks.
But then I ask myself: why not replace the word handler with the word function? Who cares? The only difference I can say is that functions do not need to have arguments, which means that they do not need to focus on a particular data type. And some functions - without arguments - are not focused on specialized tasks.
But besides this, what is the difference between a handler and a function?
Some more background:
I find that the concept of a handler is hard to understand (maybe this is because I'm Dutch and it doesn't say a word in Dutch according to Google Translate). Verification of the definition helps a little, but not completely.

source
share