[sldev] Local variable names in llwindowmacosx.cpp

Bryan O'Sullivan bos at lindenlab.com
Mon Jul 16 11:06:44 PDT 2007


Alissa Sabre asked about coding style.

> (1) report it as an issue on JIRA (with a patch)

Code cleanups for their own sake generally make us a bit nervous.  We're 
quite bandwidth limited, and cleanups take as much effort to review, 
apply, and test as actual bug fixes.

> (2) just leave it?

That would generally be the preferred approach.

> Assuming the answer to the above question is (2), what naming
> convention should variables in my new code added to the file look
> like?  A camel case or a all lowercase with underlines?

It's often best to fit in with the prevailing style in a given source 
file or context, even if that's at odds with LL's general standards. 
This doesn't extend to unsafe coding practices, though.  If nearby code 
is using sprintf or such, don't use it yourself :-)

	<b


More information about the SLDev mailing list