A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • 4 years ago

For what types of procedures would lazy evaluation semantics have an advantage over strict? In what cases is strict evaluation better than lazy evaluation?

  • This Question is Closed
  1. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I think it's generally a performance thing. Why waste cpu cycles if you don't have to? The best example I can think of is an if statement. The else isn't evaluated unless the if condition is true. When should strict be used? I'll take a shot in the dark here but I'm guessing compilers do some strict evaluation semantics to pick up potential errors.

  2. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Lazy evaluation includes performance increase, avoiding error conditions in evaluation of compound expressions, reduction in memory footprint and the best one, the capability of constructing potentially infinite data structures (so my book says). While strict evaluation eliminates the need to track and schedule the evaluation the evaluations expressions and allows the programmer to dictate the order of execution. Are into learning functional programming by any chance?

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...


  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.