-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Quick Start" is not ok (?) #273
Comments
It is in fact correct, though it should have clarification. We do this because:
We used to have assembly methods return type 'is' but it worked well to have them return the type that will be produced - for IDE code completion without casting, etc. Resolving components from the assembly is where type matters the most. This approach only works in Objective-C, in Swift the strict typing rules don't allow is kind of meta programming. Given this is unusual we do need a clear explanation. Goals:
It seems current quick start needs a little more of the 2nd point. |
Thanks for the clarification. |
You're welcome. Sorry for the typing mistakes above:
;) typing on iphone (fixed now) |
I just looked carefully to the quick start example and I discovered something obvious
basicKnight
is not returning an instance ofKnight
but instead an instance ofTyphoonDefinition
. Why are we using that as an example? Why not simply return the correct type? Am I missing something?Happy weekend!
The text was updated successfully, but these errors were encountered: