From owner-freebsd-java Wed Oct 4 8:57:57 2000 Delivered-To: freebsd-java@freebsd.org Received: from topperwein.dyndns.org (acs-24-154-28-99.zoominternet.net [24.154.28.99]) by hub.freebsd.org (Postfix) with ESMTP id 52F8F37B503 for ; Wed, 4 Oct 2000 08:57:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by topperwein.dyndns.org (8.11.0/8.11.0) with ESMTP id e94FwUk03493 for ; Wed, 4 Oct 2000 11:58:31 -0400 (EDT) (envelope-from behanna@zbzoom.net) Date: Wed, 4 Oct 2000 11:58:30 -0400 (EDT) From: Chris BeHanna Reply-To: behanna@zbzoom.net To: FreeBSD-Java Subject: Re: Sun Keynote at JavaCon2000 - C++ templates In-Reply-To: <39DB3748.72E7C55@ox.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 4 Oct 2000, Rob Furphy wrote: > I'm curious, what is it about C++ style templates that you feel will > be good for java? > (Anyone?) Type-safe collections, allowing compile-time type-checking. In large C++ systems, huge numbers of potential errors are caught this way. Better 100 compile-time errors than a single run-time error--*especially* if that error is discovered after deployment! There are other uses; e.g., generic algorithms implemented in template classes that again offer compile-time type checking, thereby reducing the number of run-time type errors that you'd have to track down. > I don't see mention of such a jsr here: > http://java.sun.com/aboutJava/communityprocess/search.html Try http://java.sun.com/aboutJava/communityprocess/jsr/jsr_014_gener.html . -- Chris BeHanna Software Engineer (at yourfit.com) behanna@zbzoom.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message