Skip to content

Comment on How Do I Declare A Block in Objective-C?

Comments

The block type syntax is just standard pointer to function syntax of C with `*` replaced with `^`. Yes it's mind blowing, especially when `returnType` is another block, but anything else would be at least inconsistent and/or illogical.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.