Re: On procedures within procedures

2013-04-03 Thread Thien-Thi Nguyen
() Mike Gran () Wed, 3 Apr 2013 07:04:43 -0700 (PDT) Do you have a personal philosophy on how much you try to minimize the scope of procedures? I figure out the data structures first, then use procedures w/o overmuch regard to inner/outer. However, i... If you were writing a tutorial,

Re: On procedures within procedures

2013-04-03 Thread Ian Price
Mike Gran writes: > I've been looking over one of the solutions to a Guile 100 problem > (a basic version of the `ls' command) at the link below.  It is > interesting stylistically because it works very hard at minimizing the > scope of procedures.  It uses a lot of procedures within procedures,

Re: On procedures within procedures

2013-04-03 Thread Noah Lavine
I often write things the way you do. I find that it's easier to test if I can get at as many procedures as possible from the REPL (but maybe I'm not very Schemey either). I also find it harder to read procedures declared in let blocks sometimes because they make the flow of control jump around on t

On procedures within procedures

2013-04-03 Thread Mike Gran
I've been looking over one of the solutions to a Guile 100 problem (a basic version of the `ls' command) at the link below.  It is interesting stylistically because it works very hard at minimizing the scope of procedures.  It uses a lot of procedures within procedures, like, for example, within a