<br><br>On Tue, May 17, 2011 at 3:14 PM, Sam Tobin-Hochstadt <<a href="mailto:samth@ccs.neu.edu">samth@ccs.neu.edu</a>> wrote:<br>> Lots of people have written similar things (`cut' in SRFI 26, Jay's<br>> `super-cut', etc), but I'd like to move towards using it implicitly.<br>
<br>I use (require (rename-in srfi/26 [cut //])) and that's simple enough for me. I find the implicit version harder to read. You have to read further to the right before realizing you are inside a function, and it is easy to miss.<br>
<br>Here are two example from my code of how it looks.<br><br><font class="Apple-style-span" face="'courier new', monospace">(define common-confusions<br> (count-instances<br> (filter-not all-the-same?<br> (map (// sort <> <)<br>
(map (// take <> 2) summary)))))<br></font><br><br><font class="Apple-style-span" face="'courier new', monospace">(define (non-whitespace-diff? . strings)<br> (define collapsed (map (// regexp-replace* #px"[[:space:]]{2,}" <> " ") strings))<br>
(not (andmap (// equal? (first collapsed) <>) (rest collapsed))))<br></font><br>