note 115892 modified in functions.anonymous by rasmus

From: Date: Tue, 05 May 2015 05:37:59 +0000
Subject: note 115892 modified in functions.anonymous by rasmus
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-202438@lists.php.net to get a copy of this message
Doesn't anyone else think Closure is used here with an inappropriate meaning? Isn't closure just the concept of being able to reference the outer function environment from the inner function, as in example #3? It's commonly used with anonymous functions, but from what I know it's not the same thing as an anonymous function. "Lambda functions" might be another name for anonymous functions, not "Closures". I mean, a named function could employ closure too. And anonymous functions don't necessarily support closure in all languages. --was-- Doesn't anyone else think Closure is used here with an appropriate meaning? Isn't closure just the concept of being able to reference the outer function environment from the inner function, as in example #3? It's commonly used with anonymous functions, but from what I know it's not the same thing as an anonymous function. "Lambda functions" might be another name for anonymous functions, not "Closures". I mean, a named function could employ closure too. And anonymous functions don't necessarily support closure in all languages. http://php.net/manual/en/functions.anonymous.php

« previous php.notes (#202438) next »