News for hackers. Stuff that matters.
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].
Re:Comparing the Same Project in Rust, Haskell, C++, Python,... by tanin on Saturday June 15, 2019 @11:02PM (#20193588)
That's a great example. And, yes, Javascript has a similar problem.