You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This note about required where indentation was written by the original language creator (see the same section in the first edition of the book). But the official reference indicates that where blocks don't require indentation.
This is why I wish the book didn't even bother with some of these details, and would instead point to a centralized reference and just focus on exercises. More ranting about that proposal can be found in #340.
Feel free to rewrite part of that section to make it more accurate. Perhaps just replace the where example with a let example.
In https://book.purescript.org/chapter3.html#notes-on-indentation it says:
and then there's this block:
Unless I'm reading this wrong, it's saying that bindings under
where
must be further indented, which isn't true.See that chapter's AddressBook.purs, which seems to violate that rule: https://github.com/purescript-contrib/purescript-book/blob/master/exercises/chapter3/src/Data/AddressBook.purs#L62-L69
The text was updated successfully, but these errors were encountered: