Skip to content

Where to put the asterisk on object pointer declarations #1

@fish2000

Description

@fish2000

You seem to prefer “C++ style” notation, where the asterisk† is appended the type name: OCType* instance – versus canonical “Objective-C style” in which it’s prepended to the instance name – OCType *instance. I myself prefer this style‡ – if you are in fact a proponent of this, it’d be awesome if you were to add a ¶ on it. Yes!

† – … or the ampersand (or possibly the double-ampersand, when in an Objective-C++ context)
‡ – Full disclosure, I love C++ and Objective-C++ (as the † note implies) which many Objective-C diehards can’t stand at all

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions