• schnurrito
    link
    fedilink
    arrow-up
    6
    ·
    16 hours ago

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

      • _____@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        ·
        13 hours 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