>>12
> Is that C99? I haven't really done C in years.
Yes. It was one of the IMHO useless additions in C99. I believe it was added for
more cross-compability with C++ code.. or something. Regardless, a bool type in
C is useless.
> Also, SICP isn't even CLisp, it's Scheme
Well, CLisp is not even lisp, it's a Common Lisp implementation! :-P
> /prog/ is full of shitheads like you who think they're awesome because they
> halfassed their way through a beginner-level book. So how about you go away.
Hmm.. /prog/'s majority is indeed shitheads & textboard trolls. I, in fact,
wrote a lengthy post regarding /prog/'s downfall & current issues (but not all
of them are addressed)
here, if anyone is interested.
> Regardless, shut up. T is not a "type error", it's the result of a value not
> enclosed in a s-expression.
F. In fact, T is a boolean value. T for true. It's just that your common lisp
implementation likes to all-caps symbol names. t (or T) is a symbol name whose
value is `true'. t + t is, in fact three expressions (and three symbols too).
Each one is evaluated and then its value is printed in the terminal. + when
evaluated for some reason will print the previous expression. I don't know why,
but it is so. Example, (by the way, how do I in HTML?)
(+ 1 2 3) +
==> 6
==> (+ 1 2 3)
Now, let's take the three expressions evaluated, t, +, t.
t is true and evaluates to true:
t
==> T
+ prints the previous value..
+
==> T
and again, t evaluates to true
t
==> T
So there you have it. Not type error, nor the one and only output when an
expression is evaluated. (not S-expression)
Considering this comes from a /prog/ regular I suggest you don't generalize a
big user base again, for the generalization will most likely be proven false.
(notice how I first agree with you and then prove you wrong, can't make my mind
sometimes :-) Add to this, SICP is not a beginners textbook. It's quite an
interesting and challenging textbook, which I suggest every programmer. Won't
make you an expert programmer in a sudden, but there is benifit from reading the
book. (I believe, however the same can be said for any good book; So read good
books :-)