2 ms·
Great article. One of the more lucid explanations of Monads... although I do wish a different language was used. As much as people don't like C++, it is proba
by kenjackson 16y ago
Great article. One of the more lucid explanations of Monads... although I do wish a different language was used. As much as people don't like C++, it is probably the simplest language to explain simple OO concepts (at least of the set which are expressible in C++).
- silentbicycle 16y agoI strongly disagree. C++'s particularly clumsy static typing introduces a LOT of conceptual baggage. Smalltalk, Scheme, or Self would probably be better, depending on whether you consider prototype-based OO to be a novelty or just the bare essentials.
- kenjackson 16y agoFor simple examples, such as those from this article, I don't think you see C++'s type system at all -- except maybe the fact that it doesn't do duck typing (which you also see with Scala).