From owner-freebsd-chat Tue Oct 30 8:23: 0 2001 Delivered-To: freebsd-chat@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id 795CD37B405; Tue, 30 Oct 2001 08:22:55 -0800 (PST) Received: from dialup-209.245.128.217.dial1.sanjose1.level3.net ([209.245.128.217] helo=mindspring.com) by robin.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 15ybfC-00003l-00; Tue, 30 Oct 2001 08:22:55 -0800 Message-ID: <3BDED411.DDEA0BD7@mindspring.com> Date: Tue, 30 Oct 2001 08:23:45 -0800 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: Jordan Hubbard , Poul-Henning Kamp , chat@FreeBSD.ORG, Nate Williams Subject: Re: time_t not to change size on x86 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John Baldwin wrote: > > Java has several problems: > > I still prefer it to C++'s problems. :) These all devolve into programmer issues. They are no worse than the requirement to use prototypes or the "volatile" keyword, which were added to C. > > 1) It can't do multiple inheritance > > Interfaces are like multiple inheritance of pure abstract classes and are > simpler to get right. They are simpler, but they rob you of the ability to do necessarily complex tasks. > > 2) You can instance classes without constructing them (the > > JavaMail API has a number of examples of this) > > So? It should not be permited to have unconstructed instances lying around. This all derives from Java trying to claim that it doesn't have pointers, it has "references". IMO, this was added for CS professors who still are unable to distinguish pointer and array math. As a friend of mine might says "Happy Prof Land" (the same place where array indices are never out of bounds). > > 3) Strong typing is for weak minds > > Or lazy ones. :) I wouldn't use Java for OS hacking, but for applications, > strong typing is more useful. Sized types would be much more useful, particularly for C, but ANSI keeps wimping out... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message