687
In case you forgot. (lemmy.world)
submitted 9 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 4 points 9 months ago* (last edited 9 months 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.

this post was submitted on 26 Sep 2023
687 points (92.0% liked)

Programmer Humor

31326 readers
20 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS