News for hackers. Stuff that matters.
Re:C#: No, you don’t get to use the “as” operator any more by Groxx on Friday April 29, 2011 @04:39PM (#2498904)
... but since 2.0 .NET can do all the things listed in that Nice document. There are glaring gaps in the core libraries, which tick me off to no end, but that has nothing to do with the language.
Re:C#: No, you don’t get to use the “as” operator any more by masklinn on Friday April 29, 2011 @05:20PM (#2499034)
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")

Re:C#: No, you don’t get to use the “as” operator any more by Groxx on Sunday May 01, 2011 @11:12PM (#2504875)
VM 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]

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#Varian...