Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

agdgdgdgwngo Group Title

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

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. michealwwells Group Title
    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 years ago
  2. arcticf0x Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    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?

    • 2 years ago
    • Attachments:

See more questions >>>

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...

23

  • 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.