@[email protected] to Programmer [email protected] • 8 days agoparseInt(5)lemmy.mlimagemessage-square63fedilinkarrow-up1474arrow-down16
arrow-up1468arrow-down1imageparseInt(5)lemmy.ml@[email protected] to Programmer [email protected] • 8 days agomessage-square63fedilink
minus-square@[email protected]linkfedilink13•edit-28 days agoCould be a variable from somewhere else in the code. It should throw type error of some sort if it’s not going to handle a float correctly
minus-squareVictorlinkfedilink1•8 days agoAgreed, functions in general should do this, and some do. But it should probably be automatic. And the variable argument is a good one, a very good argument for TypeScript. ❤️
Could be a variable from somewhere else in the code. It should throw type error of some sort if it’s not going to handle a float correctly
Agreed, functions in general should do this, and some do. But it should probably be automatic. And the variable argument is a good one, a very good argument for TypeScript. ❤️