Le 8 juil. 2011 à 20:53, Quentin Mathé a écrit : > Hey David, > > Le 8 juil. 2011 à 19:14, David Chisnall a écrit : > >> There are two ways of writing pointer declarations: >> >> Foo *foo; >> Foo* foo; >> >> Our coding conventions currently recommend the former, but I have recently >> been convinced that the latter is preferable. >> >> The rationale that we have for preferring the former is that it avoids >> ambiguity in cases like this: >> >> Foo *foo, bar; > > It's was more about readability. A space before the * makes it stands out in > a more clear way. > We disallow multiple multiple variable declarations on a single line, so the > example doesn't really hold.
Oops, I just dreamed a rule that isn't present in the guidelines. We don't disallow multiple variable declarations on a single line (there is nothing written about it). Cheers, Quentin. _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
