in reply to Re^3: Anonymous subroutines (Closures)
in thread Anonymous subroutines
I have trouble imagining a closure in Perl which can't be translated with one-to-one semantics. Of course with more lines...
That idiomatic things become sometimes bloated in the process is normal, in both directions. (Especially you'll need a lot of named subs in Python, OTOH naming can make the code more self documented.)
> more of impossible than possible. ;-)
If you think otherwise please gimme an example of a hard to translate closure.
°) Another issue in Python is variable-hoisting ,tho Pythonistas don't seem to understand the subtle Action at a distance problem resulting from that.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|