Re:Comparing the Same Project in Rust, Haskell, C++, Python,...
by zmmmmm on Saturday June 15, 2019 @10:54PM
(#20193565)
Python is indeed very frustrating that way. So many of its limitations and flaws are justified on the basis of clarity and then there are this array of very simple things that can only be expressed in unclear ways which every other language offers a solution for.
Re:Comparing the Same Project in Rust, Haskell, C++, Python,...
by galaxyLogic on Saturday June 15, 2019 @10:59PM
(#20193582)
A comparable example from JavaScript, there is no library-method for getting the last element of an array, so it gets clumsy: myArray [myArray.length - 1]. A better standard library would provide a method for that: myArray.last(). Or maybe myArray[-1].
The degree of richness and/or the height of abstraction seem lower in Python. (Not that this is a bad thing. It depends on people's taste, of course.)