Scala - parameter of type T or => T

Viewed 1644

Is there any difference between the following

def foo(s: String) = { ... }

and

def foo(s: => String) { ... }

both these definitions accept "sss" as parameter.

2 Answers
Related