<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I think the earlier discussion was for a more ambitious feature than the one suggested below. This would be to fill in just a template of the arguments *after* the function name had already been entered. Would not involve searching for functions/methods applicable to a particular type. </div><div>--- nadeem</div><br><div><div>On Jun 5, 2010, at 12:20 PM, Matthias Felleisen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>We discussed this extensively a while a ago on this list in response to a comment by Simon Peyton Jones when he visited NEU for a few days -- Matthias<br><br><br><br></div></blockquote><div><br></div><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(0, 0, 0); "><b>From: </b></span><span style="font-family: Helvetica; font-size: medium; ">Paul Steckler <<a href="mailto:steck@stecksoft.com">steck@stecksoft.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(0, 0, 0); "><b>Date: </b></span><span style="font-family: Helvetica; font-size: medium; ">June 4, 2010 10:20:29 PM EDT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(0, 0, 0); "><b>To: </b></span><span style="font-family: Helvetica; font-size: medium; "><a href="mailto:dev@racket-lang.org">dev@racket-lang.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgb(0, 0, 0); "><b>Subject: </b></span><span style="font-family: Helvetica; font-size: medium; "><b>[racket-dev] Feature suggestion</b><br></span></div><br><div>Over the past few months, I've had to spend a lot of time in Visual<br>Studio (no comments from the<br>peanut gallery, please!). It has a feature that might be useful in<br>DrRacket. When you enter a<br>class or class instance name followed by a dot, you get a popup of<br>valid methods. Yes, DrRacket<br>has the name completion feature. But after you enter one of the VS<br>method names and an open<br>paren, you get a signature (or often, many signatures due to a<br>maddening number of overloads).<br>As you type in arguments, the relevant part of the signature becomes<br>bold-faced.<br><br>You really get addicted to this setup -- see the article "Does Visual<br>Studio Rot the Mind?" by<br>Charles Petzold.<br><br>Currently, DrRacket offers name completion and the ability to lookup<br>names in Help Desk.<br>That works, but it's a bit ungainly. It would be ne plus ultra cool<br>if when you entered<br><br> (some-fun<br><br>you got a popup with the arguments to be entered. If `some-fun' is<br>in Help Desk, their arguments<br>could have their names and types. If `some-fun' is defined in the<br>current file or require'd, you'd<br>just have the argument names. Ambitiously, if the argument had a<br>corresponding predicate in a<br>contract, you could show that.<br><br>-- Paul</div></blockquote></div><br><blockquote type="cite"><div>On Jun 4, 2010, at 10:47 PM, Neil Van Dyke wrote:<br><br><blockquote type="cite">Perhaps also worth considering for inspiration is "elsoc", a useful hack that Emacs has had for arguments quick-reference.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"eldoc" does a transient display of the args to the innermost function/form that point is in. This display appears in the ``echo area'' of the frame (roughly, status bar at the bottom of the window), so you can glance at it, but it doesn't get in your face while you're looking at the code and typing.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Lisp-Doc.html">http://www.gnu.org/software/emacs/manual/html_node/emacs/Lisp-Doc.html</a><br></blockquote><blockquote type="cite"><a href="http://www.emacswiki.org/emacs/ElDoc">http://www.emacswiki.org/emacs/ElDoc</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm sure that DrRacket would do it not as a hack like "eldoc", but instead use some info that Check Syntax has. :)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Neil V.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_________________________________________________<br></blockquote><blockquote type="cite">For list-related administrative tasks:<br></blockquote><blockquote type="cite"><a href="http://lists.racket-lang.org/listinfo/dev">http://lists.racket-lang.org/listinfo/dev</a><br></blockquote><br>_________________________________________________<br> For list-related administrative tasks:<br> <a href="http://lists.racket-lang.org/listinfo/dev">http://lists.racket-lang.org/listinfo/dev</a><br></div></blockquote></div><br></body></html>