4 ms·
Monads are not "Programmable Semicolons". I understand the thinking behind the statement but it really does a disservice to people who doesn't know Monads using
by mbrodersen 7y ago
Monads are not "Programmable Semicolons". I understand the thinking behind the statement but it really does a disservice to people who doesn't know Monads using those kind of analogies.
- maddyboo 7y agoMaybe “semicolons are hard-coded monads” is a better phrasing?
- mbrodersen 7y agoYeah that is definitely more accurate.
- dreamcompiler 7y agoI think it's a very good analogy. "What happens to control and data" between statements, expressions, and function calls is not taught in depth in a lot of undergraduate CS programs because it's usually handled automatically, and always one way. With monads, this stuff (which all falls under the rubric of composition) opens up to programmer control. So that's why I think the analogy is apt.