@OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev • 1 month agoparseInt(5)lemmy.mlimagemessage-square66fedilinkarrow-up1497arrow-down10
arrow-up1497arrow-down1imageparseInt(5)lemmy.ml@OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev • 1 month agomessage-square66fedilink
minus-squareVictorlinkfedilink3•edit-21 month agoBut you’re calling a function specifically made for passing a string to an int… 😆 There’s gotta be some common sense somewhere here, guys. Still, it’s a very good point. JS should do this. I would suspect one reason it doesn’t do this is to be backwards compatible.
minus-square@listless@lemmy.cringecollective.iolinkfedilink2•1 month agoAnd god fucking forbid that common sense be in the language. Who the fuck needs a language with common sense, amirite?
But you’re calling a function specifically made for passing a string to an int… 😆 There’s gotta be some common sense somewhere here, guys.
Still, it’s a very good point. JS should do this.
I would suspect one reason it doesn’t do this is to be backwards compatible.
And god fucking forbid that common sense be in the language. Who the fuck needs a language with common sense, amirite?
🤪