Proposal: Add @noescape to the transform parameter of 'SequenceType.flatMap'

Hi All,

I am taking a look at SR-126 [1], which proposes to add @noescape to the
transform parameters of 'SequenceType.flatMap'. This is consistent with
other methods in the Standard Library that take closure parameters.

Any objections?

-- Meador

[1] [SR-126] Sequence.flatMap() is missing a @noescape · Issue #42748 · apple/swift · GitHub

No objections so far :)

Seems like you should go ahead and write a formal proposal and submit a
pull request.

Dmitri

···

On Mon, Dec 7, 2015 at 7:44 PM, Meador Inge via swift-evolution < swift-evolution@swift.org> wrote:

Hi All,

I am taking a look at SR-126 [1], which proposes to add @noescape to the
transform parameters of 'SequenceType.flatMap'. This is consistent with
other methods in the Standard Library that take closure parameters.

Any objections?

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

Seems like you should go ahead and write a formal proposal and submit a

pull request.

Will do. Thanks.

-- Meador

···

On Thu, Dec 10, 2015 at 12:45 AM, Dmitri Gribenko <gribozavr@gmail.com> wrote: