Re: [racket] Replacing lambdas with defines

2012-06-08 Thread David Janke
Since the inner-most lambda block references the list ("l"), aren't the nested lambda's the cleanest implementation? Otherwise, you would have to use currying, which looks like it would add complexity (based on a random article i just found, here http://www.engr.uconn.edu/~jeffm/Papers/curry.html)

Re: [racket] Scribble to latex

2012-06-06 Thread David Janke
You can always try including the relative path. Something like: (find-executable-path "pdflatex" "../../../sw/bin") Doesn't OS X have a .profile? Maybe try defining the path there instead of in .bashrc? On Wed, Jun 6, 2012 at 2:40 PM, Viera Proulx wrote: > I am starting to play with scribble an

Re: [racket] inline unit tests

2012-06-06 Thread David Janke
Maybe something similar to Microsoft's #region directive ( http://msdn.microsoft.com/en-us/library/9a1ybwek(v=vs.71).aspx). It wouldn't need much intelligence, but you would have to manually define each block (define fish '(1 2)) ;; region Tests (module+ test (check andmap number? fish)) ;; endreg

Re: [racket] recursion??

2012-06-06 Thread David Janke
Ronald, The Structure and Interpretation of Computer Programs has a pretty good section about how the recursion happens. It's pretty short, and I think it covers what you are interested in understanding http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_sec_1.1.5 In particular, check

[racket] inline unit tests

2012-06-05 Thread David Janke
nd just wondering what the thinking is in the community. Inline unit tests pop up here and there in other languages (Python has doctest), but it's not really widespread. Seeing how it's going to be part of the Racket core, maybe it's a technique I should start using? -- David Janke __