3 ms·
Units without type safety… perhaps another language should have been considered? How is typed Python these days?
by pharmakom 5y ago
Units without type safety… perhaps another language should have been considered? How is typed Python these days?
- toolslive 5y agopython 3 has type hints; works pretty well for simple stuff (strings, int, List[int], ...). Completely breaks down once you try to type json.
- Mazzen 5y agoType 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.
- michaelsbradley 5y agoThere's Unchained for Nim: https://github.com/SciNim/Unchained https://github.com/SciNim/Unchained