On Fri, Oct 5, 2012 at 10:22 AM, Sean Leather <span dir="ltr">&lt;<a href="mailto:leather@cs.uu.nl" target="_blank">leather@cs.uu.nl</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div>I also like the proposal; however, I think it only makes sense if the set of unbound variables with the same name is treated as referring to the same identifier. This was, after all, the main reason for named holes. Roman expected this, and I think everybody who uses the feature will expect it.</div>
</div></blockquote><div><br></div><div>I for one wasn&#39;t expecting it, so I guess that makes me fall outside of the scope of everybody. ;)</div><div><br></div><div>The main thing I like about Simon&#39;s proposal is that I could just drop an _foo in my file, and when I open it back up with vim or what have you /_foo to find my way back to it. </div>
<div>  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div></div><div>Here&#39;s a thought that just occurred to me, though I&#39;m not yet sure if it makes sense. Treat all expression identifiers _x as unique but report them as one hole with all possible types. Then, you can visually identify the patterns between the types. So:</div>


<div><br></div><div>&gt; f x = _y</div><div>&gt; g x = _y &#39;a&#39;</div><div><br></div><div>with some warning like this:</div><div><br></div><div>    Found hole `_y&#39; in multiple locations with the possible types</div>


<div>    File.hs:##:##:  a0</div><div>    File.hs:##:##:  Char -&gt; b0</div><div><br></div><div>Now, I know by looking at it that `a0&#39; and `b0&#39; are universally quantified per location, but I can do some mental unification myself.</div>
</div></blockquote><div> </div><div>There is the slight complication that the inscope variables shown for each location would be in different unification contexts as well, so your list gets a lot more cluttered, and the in scope variables probably should be grouped with each in turn, so I&#39;m not sure this is any better than listing them separately by the time you factor in that clutter.</div>
<div><br></div><div>-Edward</div></div>