|
|
|
|
|
by shadowfiend
5319 days ago
|
|
“Sure the type system is complicated, but I don't really have to understand all its nuances in order to get my program to compile and work.” This is key. People sometimes look at the type signature of the map method (as above) and freak out. It's good to try and understand everything, mind you, and eventually you probably will. The key here is that the crazy signature of the map method simply means the map method will do what you expect. That's it! “But I would write X to do it in my language” is irrelevant, because you don't write the map method. It's provided. There's a paper that describes why the signature is how it is and everything, but you don't care, because it's complicated so that when you're actually using it, it just works. |
|