Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 5 months agoJavaScriptsh.itjust.worksimagemessage-square8fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1imageJavaScriptsh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 5 months agomessage-square8fedilink
minus-squaremorgunkorn@discuss.tchncs.delinkfedilinkarrow-up0·5 months agoOn the other hand, I don’t think you should add those ever
minus-squareEthan@programming.devlinkfedilinkEnglisharrow-up0·5 months agoSure. But in a sane language doing something totally nonsensical like that is an error, and in a statically typed language it’s a compiler error. It doesn’t just silently do weird shit.
minus-squarejcg@halubilo.sociallinkfedilinkarrow-up0·4 months agoWhat’s a sane, dynamically typed language?
minus-squareLime66@lemmy.worldlinkfedilinkarrow-up1·4 months agoAny of them which are still strongly typed. Just because a language doesn’t check for type errors before runtime doesn’t mean it won’t check at all
On the other hand, I don’t think you should add those ever
Sure. But in a sane language doing something totally nonsensical like that is an error, and in a statically typed language it’s a compiler error. It doesn’t just silently do weird shit.
What’s a sane, dynamically typed language?
Any of them which are still strongly typed. Just because a language doesn’t check for type errors before runtime doesn’t mean it won’t check at all