in reply to Re: Yet Another Program on Closures ~ Steven Lembark ~ TPRC 2025 - YouTube
in thread Yet Another Program on Closures ~ Steven Lembark ~ TPRC 2025 - YouTube
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Yet Another Program on Closures ~ Steven Lembark ~ TPRC 2025 - YouTube
by choroba (Cardinal) on Jul 31, 2025 at 17:47 UTC | |
by ikegami (Patriarch) on Jul 31, 2025 at 19:21 UTC | |
Re^3: Yet Another Program on Closures ~ Steven Lembark ~ TPRC 2025 - YouTube
by LanX (Saint) on Jul 31, 2025 at 18:25 UTC | |
by ikegami (Patriarch) on Jul 31, 2025 at 19:22 UTC | |
by LanX (Saint) on Jul 31, 2025 at 20:10 UTC | |
by ikegami (Patriarch) on Jul 31, 2025 at 23:16 UTC | |
by LanX (Saint) on Aug 01, 2025 at 18:33 UTC | |
|