From: | "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> |
Newsgroups: | comp.compilers |
Date: | Sat, 25 Dec 2010 23:21:46 +0100 |
Organization: | cbb software GmbH |
References: | 10-12-040 10-12-045 |
Keywords: | design, types |
Posted-Date: | 26 Dec 2010 23:06:11 EST |
On Fri, 24 Dec 2010 12:50:20 -0500, Robert A Duff wrote:
> Boolean is fundamentally two-valued; it's
> not at all "object oriented".
This is untrue. Boolean lattice can be extended to tri-valued lattice,
four-valued lattice (Belnap logic), infinitely valued lattice (fuzzy logic)
and many other logics. Yes, some properties of the Boolean lattice can be
lost (e.g. the law of excluded middle, some idempotent operations could
lose this property etc). But any non-trivial extension of any set always
loses some properties of the original set. Booleans are object oriented as
anything else. The mathematical notion of lattice is one of the classes of
which the Boolean type is an instance, very OO.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
Return to the
comp.compilers page.
Search the
comp.compilers archives again.