[swift-evolution] Add @noescape to output parameter of 'UnicodeCodecType.encode'
Dmitri Gribenko
gribozavr at gmail.com
Tue Mar 8 01:57:20 CST 2016
On Mon, Mar 7, 2016 at 11:21 PM, rintaro ishizaki via swift-evolution
<swift-evolution at swift.org> wrote:
> Currently, all callers of this method in the Standard Library
> assume `output` parameter has @noescape semantics.
> So, I think, we can/should mark it with @noescape.
> Is there a reason why it isn't?
>
> public protocol UnicodeCodecType {
>
> // ...
>
> static func encode(
> input: UnicodeScalar,
> @noescape output: (CodeUnit) -> Void)
> }
Hi,
There is no reason, this function should be @noescape. A pull request
would be appreciated!
Dmitri
--
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 at gmail.com>*/
More information about the swift-evolution
mailing list