Twitter Feed: Post

Twitter Feed

@colinhacks ("Colin McDonnell") replied to a tweet by @colinhacks:

You can check if a particular private field exists on a given object. This is implemented as an additional overload to the "in" operator.

Classes with private fields are nominally typed —after the `#name in other` check, `other` is inferred to be a `Person` instance.