Tuesday, April 5, 2011

are objective-c blocks similar to anonymus functions in javascript?

Hi, i am trying to understand the concept of blocks. What i've read so far seems to be conceptually similar to anonymous functions in javascript. Is this correct?

From stackoverflow
  • Yes. Blocks in Objective-C are closures.

0 comments:

Post a Comment