Algebra in school is like a compiler with shitty type inference: you rarely have to write type annotations and you can easily end up with impossible states.

snek_boi@lemmy.ml to Showerthoughts@lemmy.world – 114 points –
13

You are viewing a single comment

You never specified what type a function is, such as ๐‘“ : โ„ โ†’ โ„?

Fair enough, I changed "never" to "rarely" :) I'm actually curious, did you have to specify the 'type' often?

If I remember correctly, good textbooks always specified the type. There were even exercises like โ€œfind the maximum possible domain of this functionโ€. And in higher-level mathematics, it's pretty much a sin to not specify the type.