<div dir="ltr">Do you think they still stand?<div><br></div><div>(a) is a matter of taste, but well, if something can be written using if, I wouldn't convert it to a switch. (b) is not a matter -- OptTable handles optional arguments for you. For (c) we didn't do duplication check.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 7:00 PM, Shankar Kalpathi Easwaran <span dir="ltr"><<a href="mailto:shankarke@gmail.com" target="_blank">shankarke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">a) would be easier to add more options, just add another case statement<br>
b) easy to transition state from one option to another in case of positional options.<br>
c) sometimes specifying the same argument multiple times is invalid, so becomes easier to check too.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D7478" target="_blank">http://reviews.llvm.org/D7478</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>