|
|
|
|
|
by sjamaan
4 days ago
|
|
And with lots of functions being lazy by default, you might get errors in a completely place when the code finally runs because a value is needed. Not having more explicit separation between lazy and eager is a bit of a mistake, IMO. But I think this all boils down to the design decision to have completely interchangeable/polymorphic sequence types, which you say you like. I'm not sure you can really have it both ways. Personally, I like knowing exactly what type a value has, so you can reason better about the behaviour and performance of a piece of code without having to reason about the potential call sites. And having eager evaluation by default with explicit delay/force where laziness is desired. |
|