I wonder why Scala does not use the same style of partial application for functions as other functional programming languages?
What's the benefit, or idea behind multiple parameter lists?
Does it have anything to do with the fact that Scala is based on dot calculus, or is it an optimization for the JVM?
To me it adds issues, if somebody defines a function as:
def f(x: Int, y: Int): Int
and not as:
def f(x: Int)(y: Int): Int
I cannot do partial application, simple way.
Is it a good practice to define most functions like that (is it a default approach):
def f(x: Int)(y: Int)(z: Int): Int