OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 3 days agoparseInt(5)lemmy.mlexternal-linkmessage-square64fedilinkarrow-up1491arrow-down16
arrow-up1485arrow-down1external-linkparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 3 days agomessage-square64fedilink
minus-squareqqq@lemmy.worldlinkfedilinkarrow-up14·edit-23 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-squareVictor@lemmy.worldlinkfedilinkarrow-up1·3 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. ❤️