Good point. I've come to prefer explicit args, usually.
On Jul 2, 2014 7:56 PM, "Ryan Davis" wrote:
>
> On Jun 26, 2014, at 20:43, Greg Hendershott
> wrote:
>
> > With something that big, I will often:
> >
> > - Move that function to its own new .rkt file.
> > - Move the inner functions out to t
With something that big, I will often:
- Move that function to its own new .rkt file.
- Move the inner functions out to the module level, too (as "siblings"
not "kids").
- Provide only the main one, e.g. `(provide process-elements)`.
As a bonus, now it's easier to exercise the helper functions in
Racket Style Guide
http://www.ccs.neu.edu/home/matthias/Style/style/Units_of_Code.html
in section 3.2 recommends to use functions below 66 lines.
But usually fuinctions are like this:
(define (process-elements elements)
(define (process-one ...) ...)
(define (check-element ..
3 matches
Mail list logo