sorbits/MASPreferences — comment on commit 7e73242bed4c6481400395c090c485b18edfd831
File:  line 0
By sorbits:

I prefer * binding to the type, yes. I have TextMate auto-insert most of
these (via snippets, completion, etc.) and changed the preferences for
MASPreferences, so should hopefully not happen (too much) in the future.

As for declaring multiple pointer types on same line: I never do that.

The reason for letting the aserisk bind to the type is because I mostly
do C++ and here it is the only sane style (IMHO) both because you also
have reference (&) as type-modifiers and because C++ code tend to make
more use of the ‘const’ keyword (also a type modifier), e.g.:
‘NSString* const str = …’ (which should be read right-to-left, so
const pointer to string).

On 12 Oct 2011, at 17:58, Vadim Shpakovski wrote:

> Ah, this is your code. Sorry for missing that! And thank you very much
> for respecting my coding style :)
>
> Some times I had tried to remove that space from my code, but it
> appeared I cannot read IFs, FORs, WHILEs… without spaces. This
> reminds me of function calling too much.
>
> Also, you seem to prefer "NSString* str" to "NSString *str". Then
> declaring two string in a row would be "NSString* str1, * str2".
> Right?
>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/sorbits/MASPreferences/commit/7e73242bed4c6481400395c090c485b18edfd831#commitcomment-647053