Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Typing in small scripts is pointless. The type annotations are only useful for large codebases


Various automation/pipelining scripts benefit greatly from typing, as it at least provides a level of assurance that data of proper shape is passed to relevant functions at all times. It helps especially when the automation scripts parse and extract and concatenate yaml portions from larger configs. I wouldn't want to write manual unit tests just to ensure shapes' validity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: