Good point. I've come to prefer explicit args, usually.
On Jul 2, 2014 7:56 PM, "Ryan Davis" <zenspi...@gmail.com> wrote:

>
> On Jun 26, 2014, at 20:43, Greg Hendershott <greghendersh...@gmail.com>
> wrote:
>
> > 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 the REPL.
>
> I usually nest my functions for two reasons: encapsulation (which you
> addressed) and scoping via closure.
>
> Your process explicitly breaks the latter. How does that affect the way
> you design? Do you prefer having explict args and passing everything down
> (perhaps to be more self-documenting?)?
>
>
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to