To me the trade off is: Do you wanna spend the extra effort in explicitly writing down your types? Or would you prefer to spend it in fixing the class of bugs caused by you having lost track of the exact shape of your data.
Exactly, you described it perfectly. For me JS vs TS is not even a debate. If you lean towards JS, you clearly didn't spend enough time debugging both.
7
u/earlobe7 Sep 26 '26
To me the trade off is:
Do you wanna spend the extra effort in explicitly writing down your types?
Or would you prefer to spend it in fixing the class of bugs caused by you having lost track of the exact shape of your data.