Better signature for DelayedInit

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Better signature for DelayedInit

This post has NOT been accepted by the mailing list yet.

I just thought again how I could use DelayedInit in parts of my code and it occurs to me that a better signature would be:

    def delayedInit[T](x: ⇒ T) : T

What do you think?