Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to put the asterisk on object pointer declarations #1

Open
fish2000 opened this issue Dec 15, 2015 · 0 comments
Open

Where to put the asterisk on object pointer declarations #1

fish2000 opened this issue Dec 15, 2015 · 0 comments

Comments

@fish2000
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants