[Mono-list] C#/.NET Generics update and summary
Michal Moskal
malekith@pld-linux.org
Sun, 30 Mar 2003 19:49:51 +0200
On Sun, Mar 30, 2003 at 07:08:54PM +0200, Stefan Matthias Aust wrote:
> >FASTER on Python than C# today. Generics will fix this.
>
> Only if they act like C++-style code generating templates and not like
> ML-style parametric types... but at least, there's that opportunity.
> And of course, I'd like a generic Array<String> much better than special
> StringCollection classes as they exist now.
In .NET VM you can do better then ML-style ,,all types have size of
one word so we can have one code for polymorphic function'' or C++
macro expansion err.. templates. You can do C++ like macro expansion
on-the-fly using just one CIL code (as in ML). More over you don't need
separate Array for Object, String and FooBar as long, as they all are
reference types. Anyway consider Don Syme's paper about generics.
--
: Michal Moskal ::::: malekith/at/pld-linux.org : GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h