Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2000 06:45:50 +0930 (CST)
From:      Greg Lewis <glewis@trc.adelaide.edu.au>
To:        behanna@zbzoom.net
Cc:        FreeBSD-Java <java@FreeBSD.ORG>
Subject:   Re: Sun Keynote at JavaCon2000 - C++ templates
Message-ID:  <200010042115.GAA27898@ares.trc.adelaide.edu.au>
In-Reply-To: <Pine.BSF.4.21.0010041154340.3367-100000@topperwein.dyndns.org> from Chris BeHanna at "Oct 4, 2000 11:58:30 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Chris BeHanna wrote:
> 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.

What he said :).  Yay!  I have definitely missed this feature in Java.

Not only do you get the much improved compile time type safety Chris has 
mentioned above, there are also potential performance benefits.

					- Greg


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010042115.GAA27898>