Re:Ask HN: Which Functional Language to Implement for Learning?
by apgwoz on Monday December 01, 2008 @03:17PM
(#382037)
Interesting. I've been thinking about laziness a bit lately and am wondering why not to make it the default.
Of course my thoughts haven't produced much and I haven't went in search of arguments yet. But, the only argument against it that I can see is efficiency assuming your in a pure functional language. Obviously, laziness when the surrounding environment is changing can lead to unpredictability, but compiling memoized thunks to implement laziness seems like it could be optimized very well.
Edit: In regards to your actual suggestion, I'll take a look at the spec and the idea. Thanks
Of course my thoughts haven't produced much and I haven't went in search of arguments yet. But, the only argument against it that I can see is efficiency assuming your in a pure functional language. Obviously, laziness when the surrounding environment is changing can lead to unpredictability, but compiling memoized thunks to implement laziness seems like it could be optimized very well.
Edit: In regards to your actual suggestion, I'll take a look at the spec and the idea. Thanks