3 ms·
Nice is a language, not a VM, so I'm guessing you're talking about C#. In which case... uh... no. Of Nice's "advanced safety features" it only got generics (in
by masklinn 16y ago
Nice is a language, not a VM, so I'm guessing you're talking about C#.
In which case... uh... no. Of Nice's "advanced safety features" it only got generics (in 2.0) and internal iterators (in 3.0, via LINQ methods)
* It's a single-dispatch language
* Its instanceof (`is`) is the same shit as Java's (and the compiler is just as stupid)
* Object types are always nullable, it's not optional and it's not opt-out
* Its arrays are covariant (covariant arrays were added to the CLR for java compatibility, and C# got them from there because it was "free")
- Groxx 16y agoVM vs language: not really. The version of .NET heavily defines the capabilities of the language, as it's also tied to a compiler, and multiple languages tend to get new features at the same time. e.g.: >Generics are only supported on version 2.0 and above of the Microsoft .NET framework, as well as version 2.0 of the compact framework. [http://msdn.microsoft.com/en-us/library/aa479866.aspx http://msdn.microsoft.com/en-us/library/aa479866.aspx] The day Microsoft (or anyone else) allows you to create generics in the VM for 1.1, which is quite a different one than 2.0 and above, I'll happily admit I'm wrong. Single vs multiple dispatch: yeah, you can fake it with reflection, but it's not part of the language feature. Nullable: Good point, missed that part of the page. That would be nice. IEnumerables are covariant in .NET 4, I missed the covariant part too: http://msdn.microsoft.com/en-us/library/dd799517.aspx#VariantList http://msdn.microsoft.com/en-us/library/dd799517.aspx#Varian...