On Thursday, 10 October 2019 at 15:47:58 UTC, Just Dave wrote:
    if (obj is Person person)

Looks the same as D's

if(auto person = cast(Person) obj) {
  // use person in here
} else {
  // it was some other type
}

Reply via email to