OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 7 days agoparseInt(5)imagemessage-square61linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageparseInt(5)OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 7 days agomessage-square61linkfedilink
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up0·edit-27 days 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.iolinkfedilinkarrow-up0·6 days 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?