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


(Meador Inge) #1

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] https://bugs.swift.org/browse/SR-126


(Dmitri Gribenko) #2

No objections so far :slight_smile:

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>*/


(Meador Inge) #3

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: