You're viewing a comment by robinst and its responses.

robinst Permalink
August 09, 2011, 22:10

Scala also has "()":

class Foo {
  def apply(name: String) {
    println("Hello " + name)
  }
}

val foo = new Foo
foo("Jan")  // prints Hello Jan

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "antispam_219": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.