LOL Booleans (21)

17 Name: #!/usr/bin/anonymous : 2008-03-29 18:49 ID:F321LNd2

>>15

Yeah that's pretty much what I was going for, except better-written. By "a
value" I was referring to that specific value -- either 't' or '+' (which, in
this case, also printed 't').


Ah, I see. I hope my post cleared some of the potential confusion a newbie would
have.


I have read SICP, and I believe it is a first-level book, so long as you
understand the underlying mathematics. Not so good for students who are still
trying to figure out derivatives.


Say, what do you consider advanced? You're nuts, you're crazy in the coconut if
you believe SICP is for beginners. Despite it's structure, which is not very
friendly, this book, if anything, is essential to anyone who is interested in
computer science, and in programming structure. Before anyone writes complex
software he must come up with the programs structure. Abstraction is essential
for that, and the exercises while they require relatively simple tasks, they
teach that well. Understanding the mathematical symbols and their meaning is not
as importand as understanding how to write well-structured programs. phi
has nothing to do, after all, with a kernel. (just an example of some complex
application). I am still open to suggestions, so I'd like, as I mentioned again
before, to know what you consider advanced.


Anyway, welcome to 4-ch, I'm pretty sure you'll like it here. Just do less
trolling. ;)


I've been browsing 4-ch for some time now, but my posts are a-few. It's the
first time someone calls me a troll, and I'd expect that to be quite rare in an
anonymous community. As such, I'd also like you to elaborate on the matter. I
know what I am, and I'm certainly not a troll. What are the odds for a
delusionary fool whose posts are, unintentionally similar to those of a troll?
Just in case, let me repeat this once more, I am not a troll. Please do
not consider me as one, because it certainly makes me feel shitty since my posts
are genuine.

>>16


What I'm trying to say is that I really think it should be like that in any
language. I really don't see the problem of having true and false converted into
the integers 1 and 0 as it is very helpful and not just done for hardware
reasons.


I doubt a boolean data type is of any use for most languages.


Another example would be the way booleans can be used for subscripting
the nodes of a BST when the nodes are declared as an array of two elements in C.


Or, what I would do in the absence of a boolean data type is to use AND 1 if t +
t = f, or NOT NOT if t + t = t. As you see, it also depends on the semantics and
behavior of a boolean to decide which is most appropriate. Alas these semantics
might not be there, and what's for a programmer to do then? A concrete example
of rotten documentation (or absence thereof) would be Xorg. Take a look, and my
post will get a whole differend meaning to you - I am positive about this.

This thread has been closed. You cannot post in this thread any longer.