This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: what Scalers think about.... C# 4.0?

No replies
Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.

http://www.unixuser.org/~euske/doc/cl/loop.html

2009/2/12 Meredith Gregory :
> Ricky,
>
> Do you have a reference for LOOP?
>
> Best wishes,
>
> --greg
>
> On Thu, Feb 12, 2009 at 5:55 AM, Ricky Clarkson
> wrote:
>>
>> C# is the best mainstream language, in my opinion, since 3.0. Where
>> mainstream means "top 10 on the TIOBE index".
>>
>> Linq is pretty much the same thing as for-comprehensions (and
>> do-notation, and LOOP).
>>
>> The covariance and contravariance annotations are the same as Scala's,
>> but with a different syntax. I imagine the need for wildcards is
>> reduced a little because generics are not erased as they are on the
>> JVM.
>>
>> Named parameters are much easier to implement on the CLR because the
>> bytecode contains the parameter names already. Most Java bytecode
>> doesn't.
>>
>> It's a small shame that it does a few things the wrong way around
>> though, e.g., readonly fields can be written to multiple times in a
>> constructor, locals cannot be readonly. Private is the default, which
>> encourages monoliths to sprout. Enums are untyped.
>>
>> The community is far less closed to new (or old) ideas than Java's is,
>> though there are occasional moans about local variable type inference
>> being 'unclear' etc.
>>
>> 2009/2/12 Szymon Jachim :
>> > I know it's slightly off topic, but I just thought that some of you
>> > might
>> > find it interesting.
>> >
>> > http://channel9.msdn.com/pdc2008/TL16/
>> >
>> > I'd be very interested to know what you think about all these additions
>> > to
>> > C#?
>> > (By this I don't propose anything in regards to Scala)
>> >
>> >
>> > Thanks.
>> >
>> > Szymon
>> >
>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland