<div class="gmail_quote">On Mon, Feb 20, 2012 at 00:10, Eli Barzilay <span dir="ltr"><<a href="mailto:eli@barzilay.org">eli@barzilay.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
20 minutes ago, Rodolfo Carvalho wrote:<br>
> It is possible to replace a pattern like this:<br>
><br>
> (cond<br>
> [..a..]<br>
> [else (cond<br>
> [..b..]<br>
> ...)])<br>
><br>
> With this simpler:<br>
><br>
> (cond<br>
> [..a..]<br>
> [..b..]<br>
> ...)<br>
<br>
Speaking about such transformations and about things like (if E #t #f),<br>
I have some code which I run against student submissions to find style<br>
problems like these, and using syntax transformations means that it's<br>
easy to make it actually suggest the transformation. For example,<br>
feeding it this code:<br>[...]</blockquote><div> </div><div><br> Sounds really interesting! Maybe it would be like a "Racket-lint" ;)<br><br><br>BTW I just found the nested-cond pattern appearing on HtDP, throughout section 9:<br>
<a href="http://htdp.org/2003-09-26/Book/curriculum-Z-H-13.html">http://htdp.org/2003-09-26/Book/curriculum-Z-H-13.html</a><br><br></div></div>