<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 21, 2014 at 5:09 PM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.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="">On 22/04/2014 00:31, Alp Toker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not really opposed to the idea, though. I just found the current version easier to use.<br>
</blockquote>
<br>
I recommend not modifying the Diag() signature because the feature will be unavailable to other modules until they each update their own Diag() signatures introducing latent churn.<br>
</blockquote>
<br></div>
To be clear, my concern is that other developers will propagate this over time to other Diag() functions as they would have to to be able to use it -- a problem that a fluent extension to DiagnosticBuilder wouldn't suffer from.<br>

<br>
If it does propagate, that means many signatures will get updated and locks us in a little more as we look to improve the diagnostic system.<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
To me that tips the balance in favour of the fluent approach which is the straightforward way to provide the feature to all diagnostic emitters immediately without further change to interfaces.<br></blockquote><div><br></div>
<div>FWIW, I'm not particularly a fan of the fluent or builder pattern of interfaces for things like this. If we want to go in that direction, it would seem strange to only do it for this one case. We can change all of the interfaces here whenever we want, so if anything I would go for both (a) reducing the number of them because... wtf? and (b) just keeping them all nice and consistent in the interface they expose.</div>
<div><br></div><div>But I'll let Richard comment more on the specifics of this patch. He seemed to prefer the approach as Diego took, and I'm inclined to defer to his judgement here.</div></div></div></div>