What is the idiomatic scala way to force computation on lazy value?
-
3Call it, or don't make it lazy.Dylan– Dylan2012-06-09 01:20:53 +00:00Commented Jun 9, 2012 at 1:20
-
Why do you want to force a lazy value computation ? Why do you make it lazy ? It really looks like a code smell...paradigmatic– paradigmatic2012-06-09 12:42:52 +00:00Commented Jun 9, 2012 at 12:42
-
3I make it lazy to untie knot with mutual dependencies over immutable data structures. I need to force it in right place to untie dependencies in a way to escape stack overflow with uncontrolled recursion.ayvango– ayvango2012-06-09 19:52:06 +00:00Commented Jun 9, 2012 at 19:52
Add a comment
|