News for hackers. Stuff that matters.
Re:Show HN: I Wrote a Book on Java by mejutoco on Monday September 23, 2024 @04:43PM (#41630307)
I recommend you use pydantic for type annotations. Alternatively, dataclasses. Then you pair it with typeguards @typechecked annotation and the types will be checked at runtime for each method/function. You can use mypy to check it at "compile time".

Having clear data types without oop is possible, even in python.

There are no comments on this comment yet.