-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider introducing holes and undefined #233
Comments
Maybe we could add an "extra credit" or "recommended reading" section to the end of some chapters (along with some related exercises). I don't want to duplicate any typed holes or type-directed search documentation, but I could envision some exercises to accompany a link to that article. This is my first exposure to What chapter do you think would be a good time to learn about these concepts? |
A recommended reading section would be a great way to introduce some of these concepts as well.
See docs and the link to the issue included there for an example usage. It's not so much that it should have an accompanying exercise, but rather it should be explained how it's useful to suppress complier errors. Perhaps I'd see typed holes introduced either in the functions chapter (Ch3) or at the very least before the type class chapter (Ch6). Because Ch6 is where stuff gets exponentially difficult for a beginner to understand really new concepts that could get in the way when solving the exercises. And typed holes could be very handy with the more complex exercises. |
We actually deliberately omitted |
Yeah, I agree with that after some more thought. But typed holes should definitely be covered somewhere |
I remember when I first started working with Purescript and getting more serious about it that one of the most frustrating parts was that I couldn't get to test or get the compiler to help me figure things out as I first had to reason the entire implementation of the function.
I think the idea of typed holes and undefined should be introduced fairly early with examples. Using these features greatly increases both development and lowers the stress of not figuring out functions "from the first try".
The text was updated successfully, but these errors were encountered: