News for hackers. Stuff that matters.
Re:New Machine Learning Gems for Ruby by cutler on Sunday June 20, 2021 @09:45AM (#27569891)
> This may surprise you, but using lambda is considered a sign of bad programming practice in Python

Only by its BDFL. Most languages consider lambdas to be first class so why not let the user decide?

Re:New Machine Learning Gems for Ruby by toxik on Sunday June 20, 2021 @11:42AM (#27571141)
Because the user makes poor choices, that’s the point - don’t do the clever thing, do the straightforward thing. Lambdas are discouraged in Python, and that’s not just something Guido van Rossum thinks (who, by the way, is not BDFL - there is none anymore and there hasn’t been for a long time now.)
Re:New Machine Learning Gems for Ruby by cutler on Sunday June 20, 2021 @05:45PM (#27574189)
If lambdas are clever then so is most Node.js code. Guido may have stepped down but he was responsible for this "Pythonic" attitude to lambdas. It's like the Python community is parodying Matz with "Guido hates FP therefore we hate FP".