update pythagorean triples examples to support new syntax#213
update pythagorean triples examples to support new syntax#213dominik-muc wants to merge 2 commits intofram-lang:masterfrom
Conversation
|
I like code improvements. Comments on the other hand are too excessive to my liking; for example there is no need to write such an elaborate explanation about what a Triples of Ints are. |
|
This is an example — thus it's probably gonna be read by someone who is a beginner. The comment notices that this construction is actually represented as an ADT, which might not be so obvious. |
|
Arguably, this is the least beginner friendly example. The third definition introduces effects and explaining it in terms of continuation doesn't clarify much to beginners. Without experience in functional programming this is as unreadable as it might be. Speaking of effects I have just noticed a error in explanation of BT: In |
No description provided.