I have been learning Objective-C, noting that different books and examples use differing conventions for the location of the star (*) when naming reference variables:
MyType* x; MyType *y; MyType*z; // this also works I see the first two used interchangeably, and sometimes in the same code I've seen differing uses of both. Is one format easier to read, easier to maintain, or less error prone than the other formats, or is it simply a matter of personal preference?
MyType* x;is more C++ like. The second oneMyType *y;is more C like. The third one is just lazy. But there is no absolute agreement. Your best bet is to use a convention and stick with it. If the source is already one way then stick with the already established convention of the file.MyType * a, which I like the most.