Top "Lazy-evaluation" questions

be evaluated more than once.

What is "Call By Name"?

I'm working on a homework assignment where we are asked to implement an evaluation strategy called "call by name" in …

scala scheme lazy-evaluation evaluation
InvalidOperationException in my Lazy<> value factory

I have a class containing something like the following: public static class Config { private static Lazy<ConfigSource> _cfgSrc = …

c# .net-4.0 lazy-evaluation
What's the (hidden) cost of Scala's lazy val?

One handy feature of Scala is lazy val, where the evaluation of a val is delayed until it's necessary (at …

performance scala lazy-evaluation
Disable Lazy Loading in Hibernate

How do I disable lazy loading in Hibernate? I am using persistence annotations, not an hbm xml file. I am …

hibernate persistence lazy-evaluation hibernate-annotations
String.format with lazy evaluation

I need something similar to String.format(...) method, but with lazy evaluation. This lazyFormat method should return some object whose …

java logging lazy-evaluation
Does Haskell have tail-recursive optimization?

I discovered the "time" command in unix today and thought I'd use it to check the difference in runtimes between …

haskell optimization lazy-evaluation tail-recursion tail-call-optimization
Pass parameters to constructor, when initializing a lazy instance

public class myClass { public myClass(String InstanceName) { Name = InstanceName; } public String Name { get; set; } } // Now using myClass lazily I have: …

c# parameters constructor lazy-evaluation
`def` vs `val` vs `lazy val` evaluation in Scala

Am I right understanding that def is evaluated every time it gets accessed lazy val is evaluated once it gets …

scala properties lazy-evaluation
Returning pure Django form errors in JSON

I have a Django form which I'm validating in a normal Django view. I'm trying to figure out how to …

django json unicode django-forms lazy-evaluation
withFilter instead of filter

Is it always more performant to use withFilter instead of filter, when afterwards applying functions like map, flatmap etc.? Why …

scala lazy-evaluation scala-collections for-comprehension