Found some of those, incorrectly dangling 'if's as well when I first ported to racket/base, but I can tell you the bigger surprise was what I found when I ported from racket/base to typed/racket/base. <br><br><div class="gmail_quote">
On Sun, May 29, 2011 at 2:17 AM, Neil Van Dyke <span dir="ltr"><<a href="mailto:neil@neilvandyke.org">neil@neilvandyke.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Anecdote of "if" mandatory else clause being a win...<br>
<br>
Porting some "#lang mzscheme" app code to "#lang racket/base", one of the tedious tasks is fixing all the "if" syntax that doesn't have an else clause. I decided to fix the "if" forms manually, rather than with Emacs macrology, just in case there was anything I didn't just want to make an "and". Doing it manually turned out to be fortunate, since Racket has already found *five* independent (i.e., not copy&pasted) locations where the programmers clearly intended to do "(if B E1 E2)", but instead did something else, usually "(if B E1) E2". I won't be surprised if I find a few more by the time all the code compiles.<br>
<br>
Also, I doubt the programmers would have made these oopses, had they been using recent DrRacket, which does paren-matching that's hard to ignore. I'm probably going to make Quack force more prominent paren-matching than Emacs does by default. I'll also probably add my M-arrow sexp movement key bindings to Quack, to encourage sexp-based movement.<br>
<font color="#888888">
<br>
-- <br>
<a href="http://www.neilvandyke.org/" target="_blank">http://www.neilvandyke.org/</a><br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>The object of life is not to be on the side of the majority, but to escape finding oneself in the ranks of the insane. - Marcus Aurelius <br>