• schnurrito
    link
    fedilink
    arrow-up
    6
    ·
    1 month ago

    TIL that you can declare return types this way in C++.

      • _____@lemm.ee
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 month ago

        because explicitly declaring types can be redundant, if the compiler knows a lot of the times you should also know

        also because some types are extremely cursed: see std views/ranges