0

The reason for the name 'callback' eludes me. What does that term mean?

jscs
  • 63,095
  • 13
  • 148
  • 192
  • 2
    Because it's what functions... call back. – zneak May 01 '12 at 00:47
  • possible duplicate of [Callback functions in C/C++/C#](http://stackoverflow.com/questions/6183847/callback-functions-in-c-c-c) – jscs May 01 '12 at 01:34
  • Also: [What is a callback function](http://stackoverflow.com/questions/824234/what-is-a-callback-function) – jscs May 01 '12 at 01:36

2 Answers2

4

Because it provides a mechanism for a library to call back into your code.

Oliver Charlesworth
  • 260,367
  • 30
  • 546
  • 667
2

Callbacks are called that because when you give something a callback, you enable it to "call back" into your code at a later time.

Gareth McCaughan
  • 19,580
  • 1
  • 38
  • 57