<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-03-31 2:46 GMT+02:00 Andrei Alexandrescu via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 3/30/15 4:15 PM, Mathias Lang via Digitalmars-d wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'd rather see DMD automatically pass the expression that triggered the<br>
error (as it is done in C) to replace this useless "Unittest failure"<br>
that forces me to look through the code.<br>
</blockquote>
<br></span>
Often you need the context.<span class=""><br></span></blockquote><div><br></div><div>Often, not always. You doesn't loose any information by displaying the expression.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
D has the advantage that it catches most errors at CT. You can write a<br>
lot of code and just compile it to ensure it's more or less correct. I<br>
often write code that won't pass the unittests, but I need to check if<br>
my template / CT logic is correct. It may takes 20 compilations cycle<br>
before I run the unittests. Running the tests as part of the build would<br>
REALLY slow down the process -especially given that unittest is<br>
communicated to imported module, which means imported libraries. You<br>
don't want to catch unittests failures on every compilation cycle, but<br>
rather before your code make it to the repo - that's what CI systems are<br>
for -.<br>
</blockquote>
<br></span>
I disagree.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Andrei<br>
<br>
</font></span></blockquote></div><br>As you are entitled to. But I don't see any argument here.</div></div>