[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rather, DSSLs increase modularity, productivity
Robby Findler wrote:
>At Mon, 17 Nov 2003 22:23:41 -0500, Christopher Barber wrote:
>
>
>>No, in Java's version of generics the checks are still done at runtime;
>>the compiler just generates them for you.
>>
>>
>
>I'm no Java expert, but from what I'd understood, this is false. This
>web page also seems to indicate that generics are statically checked:
>
> http://developer.java.sun.com/developer/technicalArticles/releases/generics/
>
>but it isn't a technical spec, clearly.
>
>
Yes indeed. That article skips the interesting details. You need to
read the spec.
Generics are statically checked, but because of the way they are
implemented there are ways to get around the wrong type of objects into
your collections after all, so the runtime checks need to be generated
as well.
- C
- References:
- Re: dual-language systems increase modularity
- Re: dual-language systems increase modularity
- From: Michael Vanier <mvanier@cs.caltech.edu>
- Rather, DSSLs increase modularity, productivity
- From: Mike Newhall <mike@newhall.net>
- Re: Rather, DSSLs increase modularity, productivity
- From: Michael Vanier <mvanier@cs.caltech.edu>
- Re: Rather, DSSLs increase modularity, productivity
- From: David Lichteblau <david@lichteblau.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Michael Vanier <mvanier@cs.caltech.edu>
- Re: Rather, DSSLs increase modularity, productivity
- From: Miles Egan <miles@caddr.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Daniel Weinreb <dlweinreb@rcn.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Miles Egan <miles@caddr.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Daniel Weinreb <dlweinreb@rcn.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Christopher Barber <cbarber@curl.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Robby Findler <robby@cs.uchicago.edu>