What are OOP's Jargons and Complexities?

Matthias Buelow mkb at incubus.de
Tue May 24 14:13:52 EDT 2005


Andreas Rottmann wrote:

> You get terminology totally wrong here. As already said, Lisp is
> stronger typed than C, but C is statically typed, whereas Lisp is
> dynamically typed. In Lisp (or Scheme), all variables have types:
> 
> (define foo #(1 2 3))
> (vector? foo) => #t
> (boolean? foo) => #t

Hmm.. weird Scheme you're using here.
Normally you have to quote the vector (see R5RS, 6.2.6) because it is
not self-evaluating, and boolean? should not return true on vectors (6.3.1).

I get (on scheme48):

(define foo '#(1 2 3))
(vector? foo)  => #t
(boolean? foo) => #f


mkb.



More information about the Python-list mailing list