• Ethan@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    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.

      • Lime66@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        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