Skip to content

Deprecate event handling with handle{...} #313

Description

@jpsacha

handle{...} was introduced to simplify creation of event handlers.

Starting with Scala 2.12 handle{...} can be replaced with idiomatic Scala code _ => {...}. For instance, instead of old:

button.onAction = handle {
  println("Handling button action")
  doSomething()
}

we can now write:

button.onAction = _ => {
  println("Handling button action")
  doSomething()
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions