Eschewing method overloading as a matter of principle seems to conform to the general spirit of functional programming, though for the sake of fluent API designs it might still be useful. I’ll have to chew on it some more. Thanks for the detailed post, Chris!
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 withjavap:Compiled from "Concat.scala" public final class Concat extends...
-
ticlesbase09 liked this
-
alexsaintx reblogged this from iamchrislewis and added:
the general spirit...functional programming, though for
-
iamchrislewis posted this