• fubo@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    If you only know C and you’re looking at Python, the absence of curly braces on code blocks is temporarily unfamiliar to you.

    But if you only know Python and you’re looking at C, the fact that indentation doesn’t matter is temporarily unfamiliar to you.

    Once you learn the new language, it’s not unfamiliar to you anymore.

    “Unintuitive” often suggests that there’s something wrong with the language in a global sense, just because it doesn’t look like the last one you used — as if the choice to use (or not use) curly braces is natural and anything else is willfully perverse on the part of the language designer.