Hacker News new | ask | show | jobs
by Goladus 5169 days ago
I understand anonymous code blocks is something that python doesn't do natively and other languages can do. What I don't understand is why it's worth the bother, given the hoops one must jump through to get it to work in Python specifically (new operators, keywords, and evaluating string literals as code).

If you really need new control structures, Python syntax isn't all that hard to hack.

1 comments

No string literals are evaluated as code. Everything is rewritten and then evaluated and executed at full speed.