Transcript from the "First-Class Objects" Lesson
>> Will: So how is this all possible? Who comes from a language where the notion at least regularly, there other alternative land or function as attribute. But the basic notion of passing a function in or around into another function is anathema to their day to day behavior. I [INAUDIBLE] use the word anathema.
[00:00:20] Who comes from a language where that's just a bizarre thing to do? Raise your hand if you come from a language that is unusual? Right? What is the language?
>> Speaker 2: HP.
>> Will: Yeah, exactly. That's not the behavior you do by standard. There are ways of doing it, but it is not standard.
[00:01:17] They can be assigned to variables, known as function expressions. They can be properties of other objects. What was it called when a function's a property of an object? What's a special name?
>> Speaker 2: Method?
>> Will: Method, exactly. They can be passed as arguments into functions. There it is, the function.
[00:02:23] What is that concept, Ameen? When we return a function from a function?
>> Speaker 2: High order function.
>> Will: It is a high order function by definition but what is the special thing we return a function from a function, Lindsey? Andrea? It is a magical world of, closure, and we'll see that in a second.
>> Speaker 2: Dunno.
>> Will: Katie? They can be evoked. They can have parens on the end of them. You can't do that for objects. That's the only bonus thing for a function, you can run it.
[00:02:58] It has functionality that can be run. Now that sounds, the only, it's also the most profound, it's everything. But it is also the only difference they have from objects.