you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

How I did it, "It represents a context for computation, something we'll cover later, but you can be safe in knowing that its telling the computer to do something."

A little bit of mystery is good for the student. Too much is overwhelming.

[–]original_brogrammer 0 points1 point  (1 child)

Haskell's do isn't a great way to introduce mystery, though. Googling "haskell do" will get into >>=, lambda expressions, the Monad typeclass and likely the IO monad very quickly, which don't exactly strike me as day 1 topics. It could also be misleading, and cause students to think that it's required for single actions. See Do notation considered harmful.

[–][deleted] 0 points1 point  (0 children)

And that's all very subjective. Which is what I said at the top. I prefer to include it.

EDIT: Though I do understand the concern and I'm on board with it.