OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 year agoparseInt(5)lemmy.mlimagemessage-square62linkfedilinkarrow-up1503arrow-down16
arrow-up1497arrow-down1imageparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 year agomessage-square62linkfedilink
minus-squareqqqlinkfedilinkarrow-up14·edit-21 year 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-squareVictorlinkfedilinkarrow-up1·1 year 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. ❤️