OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 2 个月前parseInt(5)lemmy.mlimagemessage-square59fedilinkarrow-up1439arrow-down16
arrow-up1433arrow-down1imageparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 2 个月前message-square59fedilink
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up4arrow-down7·2 个月前Theoretically, Javascript is an untyped language, so there aren’t supposed to really be static types. Giving type errors in this situation would be against design.
minus-squarejjjalljs@ttrpg.networklinkfedilinkarrow-up28arrow-down1·2 个月前Maybe the design is bad, then.
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up5·2 个月前Lol you’ll get no argument from me. It’s not my favorite language.
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up6arrow-down1·2 个月前JavaScript has types and it does have type errors, for instance > null.foo Uncaught TypeError: null has no properties Please stop spouting nonsense on issues you know nothing about.
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up1arrow-down5·2 个月前Dynamic types aren’t static types my man. I think you got some learning to do.
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up1arrow-down1·2 个月前Lol like facilitate versus effectuate
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up1arrow-down3·2 个月前 Theoretically, Javascript is an untyped language… Function only handles string arguments correctly. Wat.
Theoretically, Javascript is an untyped language, so there aren’t supposed to really be static types. Giving type errors in this situation would be against design.
Maybe the design is bad, then.
Lol you’ll get no argument from me. It’s not my favorite language.
JavaScript has types and it does have type errors, for instance
> null.foo Uncaught TypeError: null has no properties
Please stop spouting nonsense on issues you know nothing about.
Dynamic types aren’t static types my man. I think you got some learning to do.
You did say untyped though.
Lol like facilitate versus effectuate
Function only handles string arguments correctly. Wat.