<div dir="ltr"><a href="https://run.dlang.io/is/gVL0g7">https://run.dlang.io/is/gVL0g7</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 28, 2018 at 12:23 PM, Seb via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sunday, 28 January 2018 at 06:44:28 UTC, Timothee Cour wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
why is `a.init` even legal? (instead of typeof(a).init)<br>
likewise the following compiles, but IMO should not:<br>
class A{ void fun(this a){}}<br>
(instead we should have typeof(this)<br>
<br>
How about deprecating these lax syntaxes?<br>
they serve no purpose (we should use typeof(...)) and can cause harm<br>
in generic code<br>
</blockquote>
<br></span>
Yes, good idea!<br>
</blockquote></div><br></div>