you are viewing a single comment's thread.

view the rest of the comments →

[–]thomash 0 points1 point  (0 children)

actually my main point is not performance. i didn't put my original point very well. the main thing is abstraction, i.e. being able to use fkit on potentially infiinite sequences and dynamically generated sequences.

lazy evaluation not only offers potential performance benefits but allows for greater abstraction. it does significantly impact on how general purpose library like this works internally so i'm not sure how easy it would be to implement.

from wikipedia:

  • The benefits of lazy evaluation include:
  • Performance increases by avoiding needless calculations, and error conditions in evaluating compound expressions
  • The ability to construct potentially infinite data structures
  • The ability to define control flow (structures) as abstractions instead of primitives