Runtime instantiation
So far .NET and Go are neck and neck, but will this continue? This section covers runtime instantiation — the ability to instantiate new types using generics at runtime. Think of a generic like a template — no, not the C++ kind of template; more like a cookie cutter. Can we still stamp out new cookies at runtime using Java, .NET, and Go?
- Java: can a new
ArrayList<T>
be instantiated at runtime? - .NET: or in the case of .NET, a
List<T>
? - Golang: and does
List<T>
even exist at runtime in Go?
Next: Java