<div class="gmail_extra"><div class="gmail_quote">On 30 April 2012 10:39, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2012-04-30 02:40, Robert Clipsham wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 28/04/2012 20:22, Dmitry Olshansky wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. with statement (?). I kind of like it but bleh it's too boggy and it<br>
doesn't seem to pull its weight. (pointers? class references? a lot of<br>
stuff to go wrong) Fluent interfaces solve a good portion of its<br>
benefits to be specific.<br>
</blockquote>
<br>
My primary use case for the with() statement is with final switch:<br>
<br>
final switch(something) with(<u></u>MyEnumWithAPrettyLongName)<br>
{<br>
case A: // Save repeating myself everywhere<br>
break;<br>
<br>
. . .<br>
<br>
}<br>
<br>
</blockquote>
<br>
That's the only thing I used the with-statement for.</blockquote><div><br></div><div>That's the only thing I was aware it did ;) .. are there other uses?</div></div></div>