also I just realized that Brazil did NOT make a programming language entirely in Spanish and call it “Si” and that my professor was making a joke about C… god damn it

this post is probably too nieche but I feel like Lemmy is nerdy enough that enough people will get it lol

  • Omgpwnies@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 hours ago

    What you’re describing is type hints, it’s syntactic sugar and not used at all by the interpreter.

    For example, this is a “legal” statement:

    foo: int = "bar"

    Your IDE and linter will complain, but the interpreter just chops the hints off when compiling, and it’s left with foo = "bar"