Hacker News new | ask | show | jobs
by masklinn 5276 days ago
> Has some cool feature actually, like Blocks etc.

The blocks are kinda crummy though, and the verbosity is definitely verbose. `enumerateObjectsUsingBlock:` is a far cry from Smalltalk's `do:` (and its signature is awful too, even more so due to ObjC's lack of generics)

1 comments

... so create a category called "do:" and change the signature (clang won't bark at you like GCC).

blocks are closures and they have some semantics like function pointers.