That's because Perl is true to the historical and generally accepted definition.
The term closure is often used as a synonym for anonymous function, though strictly, an anonymous function is a function literal without a name, while a closure is an instance of a function, a value, whose non-local variables have been bound either to values or to storage locations
The languages to which you allude would be "stretching the definition of an established term". An anonymous function without[edited] the ability to access a captured environment isn't a closure.
In reply to Re^2: Yet Another Program on Closures ~ Steven Lembark ~ TPRC 2025 - YouTube
by ikegami
in thread Yet Another Program on Closures ~ Steven Lembark ~ TPRC 2025 - YouTube
by LanX
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |