|
|
stbenge wrote:
> Halbert wrote:
>> I, for one, find it much easier to read C++ code which is braced like
>> this:
>>
>> if(somecondition == 0)
>> {
>> // do some stuff
>> }
>> else
>> {
>> // do something else
>> }
>
> I, for more than one, do not.
>
>> As opposed to
>>
>> if(somecondition == 0) {
>> // do some stuff
>> }
>> else {
>> // do something else
>> }
>
> To me, the latter method is much more like POV-Ray than the first
> method. I learned POV first, so I guess that's why I do it.
>
I learned POV first, too. But for C/C++ code, the second example seems
foreign. I much prefer the first example.
But it's kind of like saying you prefer a room painted hunter green,
while I'd prefer forest green.
The only thing I'll say is that if there are coding standards in place,
follow the standard your organization uses.
Post a reply to this message
|
|