O'Reilly logo
  • Ajeya Vempati thinks this is interesting:

import scala.reflect.BeanProperty

class Person {
  @BeanProperty var name: String = _
}

From

Cover of Scala for the Impatient

Note

import scala.reflect.BeanProperty is deprecated. Use import scala.beans.BeanProperty instead.