<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 2:32 AM, Dmitriy Matrosov <span dir="ltr"><<a href="mailto:sgf.dma@gmail.com" target="_blank">sgf.dma@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can i write this constraints so they're checked at compile time, not at runtime?</blockquote></div><br></div><div class="gmail_extra">Smart constructors won't check them at compile time but it does the next best thing, which is validate at the earliest possible moment.<br>

</div><div class="gmail_extra"><br><br><br clear="all"><div>-- Kim-Ee</div>
</div></div>