<div dir="ltr">Embedding type names in arguments and method names.<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 4:45 PM, Sven R. Kunze <span dir="ltr"><<a href="mailto:srkunze@mail.de" target="_blank">srkunze@mail.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 17.09.2015 23:19, Ryan Gonzalez wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
def process_integer_coordinate_tuples(integer_tuple_1, integer_tuple_2, is_fast): ...<br>
<br>
vs<br>
<br>
def process_coords(t1: Tuple[int, int], t2: Tuple[int, int], fast: bool): ...<br>
<br>
Java's fatal mistake.<br>
</blockquote>
<br></span>
Care to elaborate?<br>
</blockquote></div><br>You said:</div><div class="gmail_extra"><br></div><div class="gmail_extra">> Even good variable names can leave the type ambiguous.</div><div class="gmail_extra"><br></div><div class="gmail_extra">These are names that don't leave anything ambiguous! :D</div><div class="gmail_extra"><div><br></div><div>Really, though: relying on naming to make types explicit fails badly whenever you start refactoring and makes hell for the users of the API you made.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Ryan</div><div dir="ltr">[ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong.<br></div><div dir="ltr"><div><a href="http://kirbyfan64.github.io/" target="_blank">http://kirbyfan64.github.io/</a><div style="display:inline-block;width:16px;height:16px"> </div></div></div></div></div></div></div></div>
</div></div>