@[email protected] to Programmer [email protected] • 2 months agoparseInt(5)lemmy.mlimagemessage-square63fedilinkarrow-up1478arrow-down16
arrow-up1472arrow-down1imageparseInt(5)lemmy.ml@[email protected] to Programmer [email protected] • 2 months agomessage-square63fedilink
minus-squareVictorlinkfedilink-3•edit-22 months 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@[email protected]linkfedilink1•2 months 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?
🤪