[Scheme-reports] boolean=? Per Bothner (25 Aug 2013 17:32 UTC)
Re: [Scheme-reports] boolean=? Erik Falor (25 Aug 2013 17:55 UTC)
Re: [Scheme-reports] boolean=? John Cowan (25 Aug 2013 18:13 UTC)

Re: [Scheme-reports] boolean=? Erik Falor 25 Aug 2013 17:54 UTC
On Sun, Aug 25, 2013 at 10:28:34AM -0700, Per Bothner wrote:
> The specification for boolean=? is it "Returns #t if all the arguments
> are booleans and all are #t or all are #f".
>
> What about: (boolean=? 1 1)
> Should this be #f (because some arguments are not booleans);
> #t (because all arguments have the same truth value);
> or an error (because the arguments don't satisfy the
> type restrictions implied by the parameter names)?
>
> Or is this unspecified and these are all allowed?

(boolean=? 1 1) => #f

Because not all arguments are boolean, the 2nd clause after "and" in
the spec doesn't apply.

--
Erik Falor                                       http://unnovative.net
Registered Linux User #445632                  http://linuxcounter.net
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports