Skip to content

let in GHCi#162

Open
MatthijsBlom wants to merge 4 commits into
learnyouahaskell:mainfrom
MatthijsBlom:let-in-ghci
Open

let in GHCi#162
MatthijsBlom wants to merge 4 commits into
learnyouahaskell:mainfrom
MatthijsBlom:let-in-ghci

Conversation

@MatthijsBlom
Copy link
Copy Markdown
Collaborator

This PR's main contribution is a note about let not being needed anymore when binding to names in GHCi.

I haven't touched the many ghci> let occurrences in the book. Some were already updated (#24), but keeping some or even many of the rest doesn't seem harmful. If it is desired that they are all removed, I'd still like to add a note that both forms exist and are synonymous, so that seeing lets in other older resources will be less surprising.

Comment thread source_md/syntax-in-functions.md Outdated
Back in the day, using `let` used to be required when binding in GHCi.
A bit inconvenient!
These days you can omit the `let` and enjoy exactly the same result.
But why, you may wonder, require `let` in the first place?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's going too much in the weeds. On top of that, I'd avoid forward references at all costs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants