We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, In tuples example there is this example:
// We can also specify the type in order to avoid inferrence let someOtherTuple = (Double(100), Bool(false))
// We can also specify the type in order to avoid inferrence
let someOtherTuple = (Double(100), Bool(false))
I think comment for example is not true because type of someOtherTuple is still inferred from content. Right example for this comment would be:
someOtherTuple
let someOtherTuple: (Double, Bool) = (100, false)
In this way we are avoiding inferrence and we will get error if we specify content with wrong type.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
In tuples example there is this example:
// We can also specify the type in order to avoid inferrence
let someOtherTuple = (Double(100), Bool(false))
I think comment for example is not true because type of
someOtherTuple
is still inferred from content. Right example for this comment would be:let someOtherTuple: (Double, Bool) = (100, false)
In this way we are avoiding inferrence and we will get error if we specify content with wrong type.
The text was updated successfully, but these errors were encountered: