On Sep 25, 2016, at 4:19 PM, Trans via swift-evolution <[email protected]> wrote:

Basically "john.residence.numberOfRooms" is a completely wasted
_expression_ -- it's meaningless.

Not true; it's an attempt to access the `numberOfRooms` property on `Optional<Residence>`. That property doesn't exist, but it could be added using an extension.

(And `Optional` does have several members—most notably `map`, `flatMap`, and `unsafelyUnwrapped`.)

--
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to