Hacker News new | ask | show | jobs
by polotics 1410 days ago
you write: "requirements.txt doesn't tell me which version of Python the code was developed with". Do you expect to have less pain with any othe rlanguage with this situation?
3 comments

I'm not saying other languages don't have the same problems, but this just hasn't been as much of an issue in my experience when working with other languages.

C# for example - I had some compatibility issues between versions 2 and 3.1 of .NET Core, but at least the .csproj tells me what version it's supposed to be built with, and the LangVersion property indicates the version of C#.

Rust has a way to specify the minimum rustc version.

https://doc.rust-lang.org/cargo/reference/manifest.html#the-...

Rust is so cool. In python's requirements.txt you can put something like:

tensorflow >=1.12,!=2.1.*

“Here is a binary” sounds a lot less painful.