OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 年前parseInt(5)lemmy.mlimagemessage-square26linkfedilinkarrow-up1380arrow-down16
arrow-up1374arrow-down1imageparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 1 年前message-square26linkfedilink
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up4arrow-down7·1 年前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-up27arrow-down1·1 年前Maybe the design is bad, then.
minus-squareheavy@sh.itjust.workslinkfedilinkEnglisharrow-up4·1 年前Lol you’ll get no argument from me. It’s not my favorite language.
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up1arrow-down2·1 年前 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.
Function only handles string arguments correctly. Wat.