Re:Intermediate Pythonista: The Function
by fpaboim on Sunday January 18, 2015 @06:19PM
(#8909404)
Interesting! I rather liked the part on closures, neat little hack, I feel the hacky nature makes them produce rather unreadable code (or at least real funky). Lua's closures are really nicely implemented, makes me actually prefer them to classes since in Lua it seems to be the other way around: classes are readable alright but you end up writing a lot of boilerplate code or having to use a library to do OOP.
Re:Intermediate Pythonista: The Function
by mhb on Sunday January 18, 2015 @03:21PM
(#8908702)
These functions that take other functions as argument are commonly referred to as higher order functions and these form the basis for functional programming.
Wikipedia, for one, disagrees about what functional programming is: http://en.wikipedia.org/wiki/Functional_programming