August 2011
1 post
1 tag
Too much curry!
What does a compiled curried method in Scala look like in java? Compile this: object Concat { def concat(s: String)(ss: String) = s + ss def concat(s: String)(i: Int) = i + s } Now inspect the resulting class with javap: Compiled from "Concat.scala" public final class Concat extends java.lang.Object{ public static final java.lang.String concat(java.lang.String,...
Aug 27th
1 note