System.Scripting 6
Two days ago, I was sharing what I was foreseeing for C# 4 and .net 4, and the integration with the DLR.
Turns out that today, by reading this post, my eye was caught by the namespace I was thinking about: System.Scripting.
But this post is about the beta 4 of IronPython 2, that hasn’t been released yet. But heh, it’s easy to forget that latest IronPython code can be downloaded from CodePlex’s TFS.
And it indeed turns out, that in the latest revision, Microsoft.Scripting.Core namespace has been renamed to System.Scripting, and that the DLR AST has been merged into System.Linq.Expressions.
So yeah, I guess we can safely admit that C# 4 will have statements support inside expression trees.
And that .net 4 will contain very cute features for dynamically generating programs, without resorting to emitting plain IL, simply using the DLR, contained in a new assembly (or namespace, if they move some to parts to System.Core), System.Scripting.
Trackbacks
Use the following link to trackback from your own site:
http://evain.net/blog/articles/trackback/493


That’s a good news.
So, we will be able to leverage all the DLR power from non dynamic languages, like C#, if our need is to create code dynamically. Manipulating AST instead of emitting CIL with LCG and SRE, right ?
Exactly. The DLR is dynamic language oriented, so the generated code tend to me sometimes complex, but that’s the use case :)
Some hints had already been dropped by the brains around Anders Heljsberg in this (interesting) video: http://channel9.msdn.com/posts/Charles/C-40-Meet-the-Design-Team/
Nevermind, I should have read your previous post before commenting ;)
So Silverlight 3.0 with Dynamic C#
*Smiling ear to ear
Well, I don’t think «Dynamic C#» is the appropriate naming. I mean, C# is and will stay a statically typed language.
But it will certainly have better integration with dynamic languages.