First, I believe we can use cout because somewhere i the vtk code there is a<br>"using std::cout".<br><br>In the C++ community there has been discussion about this.<br><br>1) using std; cout<br>2) using std::cout; cout<br>
3) std:;cout<br><br>Our tests are taking advantage of a using std::cout somewhere in the hundreds of .h files in vtk. I think this may cause users to think they they can use cout, rather than std::cout in their apps.<br><br>
Second, we have about 70 existing tests that use std::cout...<br><br>In my opinion. it doesn't seem to matter for the tests.<br><br>I'd rather spend time improving VTK's poor coverage.<br><br>Bill<br><br><br><br>
<div class="gmail_quote">On Wed, Sep 19, 2012 at 4:40 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wed, Sep 19, 2012 at 4:06 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> Folks,<br>
><br>
> There has been some recent turmoil regarding the use of std::cout in tests<br>
> versus cout. The current style guidelines recommend the latter.<br>
> First, why is this even an issue. Second, can we amend the style to allow<br>
> std::cout? Much c++ code I see uses std::cout.<br>
><br>
> I'd much rather spend time improving VTK'sl ow coverage that argue over what<br>
> seems to be a non-issue.<br>
><br>
</div></div>I guess I was the source of the aforementioned turmoil. I think it is<br>
important to stick to a common style, and actively changing test code<br>
to not match the style seems bad to me. I don't see the point in fully<br>
specifying std::cout when we have brought it into the global<br>
namespace, but if there is a strong feeling we should then my point<br>
was simply that we should specify that is the preferred style from<br>
this point forward (or that either is acceptable).<br>
<br>
If we all start modifying the VTK coding standards then our code will<br>
be far less consistent, and harder to understand due to using several<br>
styles. If there is general agreement on relaxing some parts of the<br>
style I really don't feel very strongly, but I think it should be done<br>
deliberately rather than on an ad-hoc basis.<br>
<br>
Where would you draw the line if this should be relaxed? Could<br>
standard indentation be used instead of the special VTK indentation in<br>
classes I author? I am sure we don't want to allow that, but it does<br>
require some definition on what is strictly required and what is<br>
advised/optional.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>