@OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev • 2 months agoparseInt(5)lemmy.mlimagemessage-square65fedilinkarrow-up1505arrow-down16
arrow-up1499arrow-down1imageparseInt(5)lemmy.ml@OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev • 2 months agomessage-square65fedilink
minus-square@qqq@lemmy.worldlinkfedilink14•edit-22 months 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•2 months 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. ❤️