Why does Scala apply thunks automatically, sometimes?
- by Anonymouse
At just after 2:40 in ShadowofCatron's Scala Tutorial 3 video, it's pointed out that the parentheses following the name of a thunk are optional. "Buh?" said my functional programming brain, since the value of a function and the value it evaluates to when applied are completely different things.
So I wrote the following to try this out. My…