3 ms·
I know in C# 5 they're planning on adding compilers as a service - the dynamic keyword might be necessary for that scenario but I'm not sure why the existing im
by Aaronontheweb 16y ago
I know in C# 5 they're planning on adding compilers as a service - the dynamic keyword might be necessary for that scenario but I'm not sure why the existing implicit typing system wouldn't work either.
COM interop is a popular culprit for this subject too.
Another possibility, although one that is somewhat dimmed by the virtual demise of Iron* within Microsoft, is that Microsoft wanted C# to be able to interop with other dynamic languages like IronRuby and IronPython. I can imagine a scenario where an IronRuby application could pass off a dynamically typed object to a shared library implemented in C# which supported DLR (dynamic language runtime) for some set of common functionality. I don't know much about what's possible today with respect to CLR objects passing between the DLR and the statically typed portions of the CLR, but I figured it was worth hazarding a guess.