News for hackers. Stuff that matters.
Re:Pint – A Python package to define, operate and manipulate... by pharmakom on Saturday September 04, 2021 @08:24AM (#28414442)
Units without type safety… perhaps another language should have been considered? How is typed Python these days?
Re:Pint – A Python package to define, operate and manipulate... by Mazzen on Saturday September 04, 2021 @12:09PM (#28416286)
Type annotations are great in python 3.9 and beyond. Used them heavily in one of our bigger projects and that added a lot of quality to the code.

Sadly this is also why I dropped Pint quickly. It does not integrate with annotations nicely.

Re:Pint – A Python package to define, operate and manipulate... by michaelsbradley on Saturday September 04, 2021 @01:36PM (#28417151)
There's Unchained for Nim:

https://github.com/SciNim/Unchained

Re:Pint – A Python package to define, operate and manipulate... by toolslive on Saturday September 04, 2021 @08:39AM (#28414541)
python 3 has type hints; works pretty well for simple stuff (strings, int, List[int], ...). Completely breaks down once you try to type json.