How to write lambda methods in Objective-C?

后端 未结 3 1315
悲哀的现实
悲哀的现实 2021-01-29 23:45

How to write lambda methods in Objective-C ?

3条回答
  •  失恋的感觉
    2021-01-30 00:12

    I heard André Pang at NSConference talking about how blocks were going to be introduced with the next version of Objective-C.

    This should allow functional programming.

    Edit: Since Snow Leopard has been released, this is indeed the case. Objective-C now has Blocks.

提交回复
热议问题