<br><div class="gmail_quote">On Wed, Jun 5, 2013 at 10:04 AM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.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="im">On Wednesday, June 05, 2013 02:28:16 Timothee Cour wrote:<br>
> Just figured out we can do this. Could this be added to phobos?<br>
</div>[snip]<br>
<br>
Walter is flat-out against anything which involves &&ing or ||ing version<br>
identifiers. It's not like it would be hard to add to the language, but he<br>
thinks that it's outright bad practice.</blockquote><div><br></div><div>DRY and clarity is more important (look at the horrible contorsions one has to do, eg in the example I provided above). This has been asked for many times. Once more, it would be great to have a voting system to see if there's clear majority on either side.</div>
<div> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If we were going to add this, I would<br>
expect us to just add it to the language, not to the library. So, I'd be<br>
surprised if anything like this ended up in Phobos.<br></blockquote><div><br></div><div><br></div><div>What i described fits more with the rest of the language (and doesn't require language change).<div>It allows:</div>
<div><br></div><div>static if( condition && versions.OSX){ ...}</div></div><div>//or:</div><div><div>auto foo = condition && versions.OSX;</div></div><div><br></div><div>(where condition is arbitrary).</div>
<div>A language proposal (eg version(OSX || Windows) ) would not allow it.</div><div><br></div><div><br></div></div>