3 ms·
... and Clojure. These two stand out as the most elegantly designed creativity-enhancing programming languages. The rest are mainly a set of constraints. Python
by cutler 5y ago
... and Clojure. These two stand out as the most elegantly designed creativity-enhancing programming languages. The rest are mainly a set of constraints. Python is the VHS of programming languages with its pathetic lambdas.
- truth_ 5y agoWhat do you think about Elixir in this context? Is it not "creativity-enhancing" enough?
- cutler 5y agoElixir doesn't have an array/vector implementation. Instead it has to borrow Eralng's ugly offering or hack Map with numeric keys as in PHP.
- beakerbreaker 5y agoThere is some exciting development on that front by building on XLA. https://github.com/elixir-nx/nx/tree/main/nx https://github.com/elixir-nx/nx/tree/main/nx
- cutler 5y agoSo I can get a cutting-edge PyTorch/TF multi-dimensional array with Nx but Elixir itself still has no basic built-in vector? I don't get it.
- arcturus17 5y agoLambda syntax is indeed horrible in Python. I hope some day they do something to fix it… Otherwise I really enjoy the language and the ecosystem.
- toxik 5y agoThis may surprise you, but using lambda is considered a sign of bad programming practice in Python. In general, this whole thread completely misses the point Python makes. Do not invite “clever” language (ab)use. Do the straightforward thing.
- cutler 5y ago> 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?
- toxik 5y agoBecause 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.)
- cutler 5y agoIf 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".