Skip to content

Commit

Permalink
Remove discussion to 'var' parameters.
Browse files Browse the repository at this point in the history
Reviewed in person with Brian.

Deleted stale Radar FIXMEs -- these bugs have been closed as NTBF.
  • Loading branch information
amartini51 committed Mar 22, 2016
1 parent 6a7fe41 commit 0f0cb9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions LanguageGuide/Closures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,12 @@ Closure expression syntax has the following general form:
<#statements#>
}

Closure expression syntax can use
constant parameters, variable parameters, and ``inout`` parameters.
Default values cannot be provided.
The *parameters* in closure expression syntax
can be ``inout`` parameters,
but they can't have a default value.
Variadic parameters can be used if you name the variadic parameter.
Tuples can also be used as parameter types and return types.

.. FIXME: the note about default values is tracked by rdar://16535452.
Remove this note if and when that Radar is fixed.
.. FIXME: the note about variadic parameters requiring a name is tracked by rdar://16535434.
Remove this note if and when that Radar is fixed.
.. QUESTION: is "reversed" the right name to use here?
it's a backwards sort, not a reversed version of the original array
Expand Down
4 changes: 2 additions & 2 deletions LanguageGuide/Subscripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ Subscript Options
Subscripts can take any number of input parameters,
and these input parameters can be of any type.
Subscripts can also return any type.
Subscripts can use variable parameters and variadic parameters,
but cannot use in-out parameters or provide default parameter values.
Subscripts can use variadic parameters,
but they can't use in-out parameters or provide default parameter values.

A class or structure can provide as many subscript implementations as it needs,
and the appropriate subscript to be used will be inferred based on
Expand Down

0 comments on commit 0f0cb9b

Please sign in to comment.