Re:Functional Programming in Python
by ca_parody on Thursday May 28, 2020 @01:12PM
(#23339785)
Why the lambdas at all in these examples...
and not
(besides subclasses not getting their balance called...)
[ Parent
| on HN ]
Re:Functional Programming in Python
by slightwinder on Thursday May 28, 2020 @02:17PM
(#23340502)
It's a bad example. You can of course do more with lambdas in python. Maybe "lambda real_user: real_user.get_balance()+1" or "lambda some_junk, real_user: real_user.get_balance()" would have been better.