IronRuby, IronPython, or Something Else?
I am looking to build a set of dynamic 开发者_StackOverflow社区scripts, stored in a table, that will act as business rules against my EF model. In the past, I was inclined to use IronRuby or IronPython when thinking about my options. Much to my dismay, I just read that both are dead! (http://www.ironshay.com/post/IronRuby-and-IronPython-are-Officially-Handed-Over-to-the-Community-IronRuby-Tools-for-VS-is-Out-and-More!.aspx) What scripting language, compatible and fast with .NET, should I use now?
I don't believe either IronRuby or IronPython is dead, actually... they've recently changed ownership effectively, but they're still being worked on.
Anyway, you might also want to look at Boo.
You still can use C# for this. You can use Expression Trees to build. Yes it is not very intuitive, but it allows you to build dynamically expression and execute it. I just recently used Expression Trees to execute business rules stored in database and it works.
精彩评论