oclyke / blanket-rs

static generator
https://www.blanket-rs.net
MIT License
0 stars 0 forks source link

Why Aren't We Lazy? #32

Open oclyke opened 8 months ago

oclyke commented 8 months ago

Getting to the bottom of the laziness, or lack thereof, in the API would be great.

It would be great if we could massage the API into an ever-more functional style.

oclyke commented 8 months ago

Let me clarify one thing: I haven't stopped lately to ask myself why I think the functional style is lazy. I am not convinced that this is necessarily true, but there does seem to be a correlation. Probably having to do with the unwinding of the stack when a lot of closures are used to compute the final output at the last possible moment.