Hi all,
I've just seen an article detailing the new C#4.0 'dynamic' feature previewed at the PDC 2008 and I wondered what people thought of it ? I'm wondering:
- what are good examples of the benefit of such an addition to the language
- possible disadvantages
- performance implications
I guess people with experience of dynamic languages or else any lucky soul with the 2010 CTPs from PDC may have given it a whirl...
UPDATE: Please do keep posting your thoughts, it's kinda cool to see lists of for / against arguments and, at the very least times that it'll be appropriate and issues to consider.
Benefits:
- dynamic lover with a host of links - Curt Hagenlocher
- New C# 4.0 Features Microsoft reference (docx) - Hugo
- Objective-C comparison - John Rudy
- I think kenny likes the idea
- Visual Studio 2010 and C#4.0 CTPs with language features - Chris Conway
- Interop benefits - ffp
- duck typing - Rob Walker
- ElsticObject using C# 4.0 dynamic features to work with XML
Potential issues:
- Fears of type safety - Steve Morgan
- C# for C# - SoloBold
- On its way to php (and a nice discussion on his blog) - Omer van Kloeten
- fears of abuse - Jonathan Holland
- excusing poor desgin - Robert C. Barth
- C# a Frakenstein child of C - Nelson LaQuet
- Late Binding and co- and contravariance - Thedric Walker
- Wish it was var - Orion Edwards