Wednesday, September 14, 2005

I've been distracted all morning, drooling over the C# 3.0 features.  First, I was upset that they would tease us with 3.0 features before 2.0 is even released yet (and it's still a little silly), but being able to download, play with them, and run them makes a world of difference.  Here's my favorites distilled for those who don't want to check it out.

  • Tons of type inference stuff.
    • List<int> list = new List<int>();
    • becomes
    • var list = new List<int>();
    • I'm not sure how I feel about "var".  It makes it feel a little like javascript.  I can see how that makes the language less ambiguous, and three letters isn't that bad.
  • Tons of initialization stuff
    • Initialize any collection-type-thing like you would an array. (new List<int> {1,2,3,4})
    • Intialize objects with a named-parameter feel (new Person {FirstName="Mark", LastName="Miller} //not a constructor)
  • A few AOP-ish goodies with extension methods - This is extremely cool.  Add methods to string, or anything else.  Very sweet.
  • "Fix" the anonymous delegate syntax with lambda expressions
    • delegate(int x) {return x+1;}
    • becomes
    • x => x + 1
    • This will be hard to approach for some, but I think it's great
  • Anonymous Types - This is excellent for working with data where you don't really need a formal type, you just need to work with some data.
  • Language Integrated Query - This is the grand-daddy of them all.  Query against objects, query against XML, query against relational data, query against anything!  All using first-class features of the language!  I'm pretty excited about this.

I'm dissapointed in the lack of first-class duck typing support (late binding).  Yeah, we get half-way there through the use of query and anonymous classes, but there's some scenarios where that seems like hammering a tack with a sledgehammer.

I'm really excited in the innovation I see in the CLR-world.  Sure, lots of the above represent old ideas, but the query stuff represents big innovation in that space that fits right in where the "hurt" is.

posted on Wednesday, September 14, 2005 9:17:46 AM (Pacific Standard Time, UTC-08:00)  #    Comments [1]
Related posts:
9-year Anniversary (yesterday)
LinqToStdf now on CodePlex
Image Slicer for Deep Zoom in Silverlight 2
Silverlight limitations and Constrained Callvirt in IL
Happy Birthday Peter
What are the generic Delegates in the framework for?
Tracked by:
"More C# 3 and LINQ" (marklio) [Trackback]
http://www.marklio.com/marklio/PermaLink,guid,bdcef32a-18ba-4dd3-8f99-3d8e2c569e... [Pingback]
"Duralgesic Patch and Ativan" (Duralgesic Patch and Ativan) [Trackback]
"Charity Hospital New Orleans" (Charity Hospital New Orleans) [Trackback]
"what are the benefits for a structured settlement" (what are the benefits for a... [Trackback]
"accounting information" (accounting information) [Trackback]
"Pug Puppies for Sale" (Pug Puppies for Sale) [Trackback]
"wilton maine" (wilton maine) [Trackback]
"california limousine service san francisco area" (california limousine service ... [Trackback]
"Funny Birthday Poems" (Funny Birthday Poems) [Trackback]
"mens cufflinks" (mens cufflinks) [Trackback]
"DC MILL MOTORS" (DC MILL MOTORS) [Trackback]
"Navigator Electric Trolling Motors" (Navigator Electric Trolling Motors) [Trackback]
"car brunette blowjob" (car brunette blowjob) [Trackback]
"delphi automotive mexico manufacturing facilities" (delphi automotive mexico ma... [Trackback]
"Free Software to View JPG Files" (Free Software to View JPG Files) [Trackback]
"march madness soccer tournament" (march madness soccer tournament) [Trackback]
"what is lisinopril hct" (what is lisinopril hct) [Trackback]
"Clarion Shutters" (Clarion Shutters) [Trackback]
"hp photosmart 325" (hp photosmart 325) [Trackback]
"girl leg brace" (girl leg brace) [Trackback]
"patio furniture cushions" (patio furniture cushions) [Trackback]
"peter rabbit bedding" (peter rabbit bedding) [Trackback]
"Computer Police Scanner" (Computer Police Scanner) [Trackback]
"how to get oxycodone" (how to get oxycodone) [Trackback]
"100 Free Ebooks" (100 Free Ebooks) [Trackback]
"landscape architecture college courses" (landscape architecture college courses... [Trackback]
"Laura Ashley Discontinued Bedding" (Laura Ashley Discontinued Bedding) [Trackback]
"low iron" (low iron) [Trackback]
"pin curlers" (pin curlers) [Trackback]
"building your own thickness sander" (building your own thickness sander) [Trackback]
"inks lake" (inks lake) [Trackback]
Saturday, October 01, 2005 8:25:20 PM (Pacific Standard Time, UTC-08:00)
It is some cool stuff. I was there, and it was fun to see. I really haven't been on the MS bandwagon until now. Between the brilliant people in marketing and the brilliant people in research, I am sold.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):