13 Comments
User's avatar
Zan Tafakari's avatar

This was just fantastic as usual, thanks stephen!

Expand full comment
Stephen Gruppetta's avatar

Thanks Zan!

Expand full comment
Alejandro Piad Morffis's avatar

Excellent as usual! Just for the sake of fun, you definitely *can* program *anything* using just lambdas. They're Turing-complete! Now, whether you should...

Expand full comment
Stephen Gruppetta's avatar

Ah yes, maybe we should do a fun post of how to abuse `lambda` functions and guarantee zero-readability!

Expand full comment
Alejandro Piad Morffis's avatar

@jjdev would love it for sure

Expand full comment
James O'Reilly's avatar

What a great post. Thanks for this 👍. Just the facts.

Expand full comment
Stephen Gruppetta's avatar

Thanks James. It’s often glamourised too much!

Expand full comment
Carlos R. González Jiménez's avatar

Excellent post. Congrats

Expand full comment
Stephen Gruppetta's avatar

Thank you Carlos

Expand full comment
Christian Ledermann's avatar

In the context of bytecode optimizations in newer python versions, will a lambda be inlined or is it still a function call?

Expand full comment
Stephen Gruppetta's avatar

Good question. I don't knowl I'll try to find out…

Expand full comment
Christian Ledermann's avatar

https://github.com/brandtbucher/specialist may be of help investigating this

Expand full comment
Stephen Gruppetta's avatar

Looks interesting. Will have a look!

Expand full comment