Date: Wed, 08 May 2002 13:09:14 -0600 From: Ian <freebsd@damnhippie.dyndns.org> To: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: /usr/include/netinet/in.h Message-ID: <B8FED3FA.CC8C%freebsd@damnhippie.dyndns.org> In-Reply-To: <3CD9727B.B53067A4@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> The general rule is "including includes from includes is bad". Okay, it's time to point out that these are opinions, not rules, and differing opinions exist. My opinion is that if a given header file requires some aspect of another interface, that header should (nay, MUST) include what it needs for itself, rather than relying on something external to "do the right thing". Why require thousands of programmers to remember all these interdependancies as opposed to one programmer encoding the depenancy once where it belongs and then everyone else can get on with their life and get some real coding done. Within the context of a given project (E.G., FreeBSD) someone's opinion on this matter may achieve the force of "a rule". Within the larger context of software engineering in general there is no rule, not even a concensus, on this issue. -- Ian Programmer since 1972 C programmer since 1985 Demagogue since... well, as long as I can remember. :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8FED3FA.CC8C%freebsd>