• Unlike traditional types such as string, number, or even JavaScript’s dangerously permissive any, an ambiguous variable can contain any value, several values, or no value at all, depending on execution context, compiler mood, and whether anyone is currently debugging it.

      It’s different than loosely typed vars, which are not at all exclusive to Javascript

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        21 hours ago

        “any value, several, or no value”. Any in JS is literally that tho, sans “Never” iirc

        Edit: oops, I was wrong. Any MAY be a never. Typescript allows it