OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 8 months agoparseInt(5)lemmy.mlimagemessage-square17linkfedilinkarrow-up18arrow-down10
arrow-up18arrow-down1imageparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 8 months agomessage-square17linkfedilink
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up0·8 months agoTheoretically, 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-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up0·8 months agoJavaScript 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-up0arrow-down1·8 months agoDynamic types aren’t static types my man. I think you got some learning to do.
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.
JavaScript has types and it does have type errors, for instance
> null.foo Uncaught TypeError: null has no propertiesPlease 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.