Skip to content

Instantly share code, notes, and snippets.

@machisuji
Created August 16, 2010 16:32
Show Gist options
  • Save machisuji/527234 to your computer and use it in GitHub Desktop.
Save machisuji/527234 to your computer and use it in GitHub Desktop.
def javaUsage() {
val model = new Model
model.onChange(new ChangeListener {
override def changed() {
// react
}
})
}
def scalaUsage() {
val model = new Model
model.onChange {
// react
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment