[Geany-devel] Default snippets

Lex Trotman elextr at xxxxx
Fri Aug 26 10:39:38 UTC 2011


[...]

Hi Alex,

Nice job.

My 0.5c worth, in C++ it is important to pre-increment unless you
really need the previous value since post increment could create a
wasted expensive copy of an object. Although an int isn't expensive,
it is probably better to make it ++i in the for loop so it agrees with
the usual idiom.

Cheers
Lex



More information about the Devel mailing list