OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 day agoparseInt(5)lemmy.mlexternal-linkmessage-square63fedilinkarrow-up1465arrow-down15
arrow-up1460arrow-down1external-linkparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 day agomessage-square63fedilink
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up3arrow-down6·edit-221 hours 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-squarelistless@lemmy.cringecollective.iocakelinkfedilinkarrow-up2·13 hours 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?
🤪