Am I the only one who finds this error message odd?
'Foo?' does not have a member named 'variable'.
It makes sense to me. “Foo?” is not the same as Foo; it’s shorthand for something like Optional<Foo>, which does not have a member named ‘variable’.
I guess the message would be clearer if it said something like “You forgot to unwrap ‘foo’”. I suppose that kind of polish will get added to the compiler over time; right now they still have bigger issues to work on…