4 ms·
In fairness, if you are choosing a language based on language features, you are not going to choose Python either.
by randomdata 3y ago
In fairness, if you are choosing a language based on language features, you are not going to choose Python either.
- pjmlp 3y agoPython is quite rich in language features, C++ like, most people tend to think it is like BASIC, but it definitly isn't.
- diarrhea 3y agoYep. Some people complain about C# having too many bells and whistles these days, but Python matches almost 1:1 in language features. It’s vast.
- maleldil 3y agoWhy not? The ecosystem might as well be a language feature, and Python has one of the strongest for a lot of areas, not just ML. Also, what is Python lacking that other languages have? It's expressive and fast to develop, and with type hints and linters, reasonably robust. My main complaint is performance, but I'll take the speed to write most days.
- zelphirkalt 3y agoTCO, multiline lambda, fluids/parameters, to name a few.
- FreakLegion 3y agoTCO 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.