News for hackers. Stuff that matters.
Re:“Python's batteries are leaking” by resoluteteeth on Saturday May 18, 2019 @02:55PM (#19949076)
Yeah Rust is pretty extreme. I was just trying to generate a random number in it and was pretty surprised to find out that at some point it did have this functionality in the standard library but they actually removed it and now it's a separate crate.
Re:“Python's batteries are leaking” by nicoburns on Saturday May 18, 2019 @03:02PM (#19949112)
That is actually being considered for inclusion at some point. It was mainly excluded due it not being ready and them not wanting to commit to the existing API. That said, I like the Rust way. Including a library is pretty easy, and it mains you get the best API as the main one (rather than a stdlib function that is "good enough", and another library to use if you really care about that functionality).