3 ms·
My (perhap controversial) take is that static typing in Python is also a form of premature optimisation. Code should be written without static types first, and
by j4mie 5y ago
My (perhap controversial) take is that static typing in Python is also a form of premature optimisation. Code should be written without static types first, and static types should only be added when absolutely necessary. 99% of the time, it never will be.
- IshKebab 5y agoWhy though? Static types make it easier to write code overall, so you're slowing yourself down for no real benefit. You could just as easily say "Descriptive variable names are a form of premature optimisation. Code should be written with single-letter names, and descriptive names only added when absolutely necessary."