Comments on bashful-barracuda

9 views
Skip to first unread message

JuanManuel Gimeno Illa

unread,
Jul 3, 2012, 1:03:12 PM7/3/12
to fp...@googlegroups.com
Some comments/suggestions  on bashful-barracuda:

- Section 1.14: Unlike in some languages, if expressions have values ...

Maybe I'm overcomplicating it but if if is an expression it must have a value. Maybe explaining the difference between statements and expressions would be overkill but, for me, being an expression is tha same as having a value.

- Section 1.17: So if you want to increment a whole sequence of functions

It should be a sequence of numbers

- Section 1.18, exercise 5: The range function produces a list of numbers

As sequences have already been introduced (informally), I think it would be better to say a sequence of numbers.

- Chapter 2: def shift(self, xinc, yinc): ....

The first time method shift is presented in python, I think it should be inside a class definition (like the java version was).

- Chapter 2: the comparison between x += xinc and this.x += xinc

I think it would be clearer if both methods were inside a class definition which define x and y as instance variables.

- Section 3.1: Keywords have the nice property that theu act as functions ....

I don't know if it would be interesting to add that maps can act as functions too.

- Section 3.4: Exercise 2. so weâ€TMll use a instead:

The funny â€TM

- In the same exercise, the same funny combination appears after the (a Triangle ...) expression.

Juan Manuel

Brian Marick

unread,
Jul 8, 2012, 2:55:37 PM7/8/12
to fp...@googlegroups.com

On Jul 3, 2012, at 12:03 PM, JuanManuel Gimeno Illa wrote:

> Some comments/suggestions on bashful-barracuda:

Thanks. All fixed where noted, except:
>
> - Section 3.1: Keywords have the nice property that theu act as functions ....
>
> I don't know if it would be interesting to add that maps can act as functions too.

I mention that (and the equivalent about vectors) in a later chapter.

-----
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile


Reply all
Reply to author
Forward
0 new messages