[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suitability of Lua as a First Programming Language?
- From: David Given <dg@...>
- Date: Tue, 22 Sep 2009 20:53:06 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Olivier Galibert wrote:
[...]
> Perhaps because these "standard answers" are high-grade bullshit? A
> pizza, a car or a (physical) window has never been part of a
> program[1]. Equating structuration primitives with physical unrelated
> objects is not going to tell you how to use them or even what they're
> useful for in the first place.
The C++ FAQ Lite contains essential reading on this subject, and
explains clearly why the intuitive sense of inheritance doesn't actually
help. See 21.6 to 21.11 here:
http://www.parashift.com/c++-faq-lite/proper-inheritance.html#faq-21.6
The short summary is:
Q. Does Circle subclass Ellipse?
A. Fish.
(Doesn't require detailed C++ knowledge!)
- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "People who think they know everything really annoy those of us who
│ know we don't." --- Bjarne Stroustrup
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFKuSsff9E0noFvlzgRAvg/AKDgEmRQvzDp8gQ2UB6JBPQMXUdFMwCaAh2B
mnikhkMiFAybyEn5aMAz5rk=
=wjeH
-----END PGP SIGNATURE-----