|
|
Log in / Subscribe / Register

Philosophy and "for" loops — more from Go and Rust

Philosophy and "for" loops — more from Go and Rust

Posted Jul 4, 2013 8:21 UTC (Thu) by Frej (guest, #4165)
In reply to: Philosophy and "for" loops — more from Go and Rust by b7j0c
Parent article: Philosophy and "for" loops — more from Go and Rust

I'm not saying it's haskell is simple, far from. I'm claiming it is just as complex and difficult to learn and master. Control flow is a really complex issue, being it iterative loops or recursion.

I'm sure if you ask those who teach comp.sci introductory courses, they will tell you the same, but maybe they just brainwashed me ;) Many universities have chosen a functional language for the intro course (such as SML) exactly because of this. They claim it is easier to learn, especially for those who haven't programmed before.

For lazy evaluation as the default, yes it might have been a mistake. It makes figuring out time complexity of a program unnecessary hard.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds