Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# dynamic types - heaven or hell?

Tags:

c#

dynamic

Do you think the new dynamic type for C# is a serious drawback regarding the advantages of a strong typed language or do you think the advantages (like getting around those heavily reflections) outweigh the risks?

like image 892
bash74 Avatar asked May 06 '10 08:05

bash74


1 Answers

The main use of the dynamic keyword appears to be for ASP.NET interaction where you are working with a weakly typed language like Javascript, or for passing parameters inside ASP.NET MVC helper classes in a view.

I don't think any experienced C# programmer will start to use it for a replacement of the type system, and if they did they'd be shot down fairly quickly.

like image 79
Chris S Avatar answered Sep 27 '22 21:09

Chris S