News for hackers. Stuff that matters.
Re:Ask HN: Which Python type checker should I use? by roland35 on Sunday February 18, 2024 @07:31PM (#39425012)
Eh it's either Python or C++ with ROS, and Python is much easier to work with. Adding type checks to method arguments isn't much different than doing it in Rust, and makes life much easier with anything larger a tiny program.

If there is anything complicated, you can either make a quick generic type (TypeVar) or even just throw in an Any type! I had to do that recently with a function that handled different ROS services, which apparently do not share any base class.

There are no comments on this comment yet.