What is the formal difference between passing arguments to functions in parentheses () and in braces {}?
()
{}
The feeling I got from the Pro
With braces, you got semicolon induced for you and parentheses not. Consider takeWhile function, since it expects partial function, only {case xxx => ??? } is valid definition instead of parentheses around case expression.
takeWhile
{case xxx => ??? }