Re: [racket-dev] Please help me to understand the two lines.

2011-05-30 Thread Sam Tobin-Hochstadt
On Mon, May 30, 2011 at 10:07 AM, Yingjian Ma yingjian.ma1...@gmail.com wrote: The lines are from http://pre.racket-lang.org/docs/html/reference/booleans.html section 3.1 The lines are: (boolean? v) → boolean?   v : any/c Question 1 The result (boolean? v) is a boolean.  Why is it not

Re: [racket-dev] Please help me to understand the two lines.

2011-05-30 Thread Robby Findler
The results of functions are all given by contracts. So, this is saying that the function named boolean? returns something that, when passed to boolean?, returns #true. This is a confusing example to start with, tho, if you had number?, you'd see: (number? v) - boolean? v : any/c which is

Re: [racket-dev] Please help me to understand the two lines.

2011-05-30 Thread Shriram Krishnamurthi
I think even one sentence in the docs about the implications of these statements there would be a great idea. To someone who doesn't already know Scheme, the distinction between one value and the alternative is entirely unclear because they don't know what alternatives there are to one

Re: [racket-dev] Please help me to understand the two lines.

2011-05-30 Thread Robby Findler
Do you still have commit acces to the repo? Robby On Monday, May 30, 2011, Shriram Krishnamurthi s...@cs.brown.edu wrote: I think even one sentence in the docs about the implications of these statements there would be a great idea.  To someone who doesn't already know Scheme, the distinction