• SorteKanin@feddit.dk
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    1 year ago

    Type signatures help you to know what a function takes and returns. With dynamic typing, I have to read the entire code of the function just to know this (sometimes even this doesn't tell me what will actually be returned due to duck typing).

    More importantly, type signatures help the compiler verify the types.

    Both of these get more and more important as the code size increases. I'd suggest you widen your horizon about static typing.