- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Does currying in Scala imply some performance penalty?
Created by admin on 2008-07-28.
Updated: 2008-07-28, 16:37
Currying per se does not have a performance penalty. If f and g are methods defined as
def f(x: Int)(y: Int) = expr def g(x: Int, y: Int) = expr
then f(x)(y) and g(x, y) are compiled into exactly the same code.









