3 ms·
TCO is available in Python if you want it. Multiline lambdas can be had by abusing the walrus operator, but in a language that supports nested functions it's a
by FreakLegion 3y ago
TCO is available in Python if you want it. Multiline lambdas can be had by abusing the walrus operator, but in a language that supports nested functions it's a bit pointless. Assuming you meant fluents, you can write most languages in that style if you want to, including Python.
- zelphirkalt 3y agoTCO is available if I want it? How? Do you mean writing a slow decorator, that performs some stack magic and that I need to add everywhere? Does it cover all the cases? Like mutually tail recursive functions? Abusing the walrus operator — Well, it is abuse then and hard to read. I actually mean: https://www.gnu.org/software/guile/manual/html_node/Parameters.html https://www.gnu.org/software/guile/manual/html_node/Paramete...
- pjmlp 3y agoIt isn't as if Go provides those features, which was the suggested alternative to Python.
- zelphirkalt 3y agoAh, OK, I guess I lost context there. I was just thinking in general, what I am missing in Python.
- randomdata 3y agoIt was suggested that neither Go nor Python would be chosen if language features are what you are after. Pointing out that both lack a certain feature only reiterates why one would not chose either of them.