Runtime dynamic language and CLR - what is the point of DLR?

From the wikipedia entry on DLR ,

It seems that the purpose of DLR is to use a language like Python, Ruby ... etc. Is it all in DLR? Are there any other advantages and why do you want to choose IronPython for C # for an ASP.net or Winform project?

+3
source share
5 answers

The CLR and its basic execution model are optimized for statically typed languages. Almost all methods in .NET class libraries accept arguments that are more accurately typed than the root of the System.Object type system.

. . , CLR-, / CLR. , .

, , CLR , , .. -, -, ( ), , . (/ ) .

, , , , , CLR . dynamic # : DLR, , COM, IronPython, IronRuby ..

+3

DLR . , DLR Ruby Python script , #. , script .

+1

.NET CLR . , , , , #, F #, Ruby - .

+1

-

string firstName = (string)Session["FirstName"];

DLR

dynamic firstName = Session.FirstName;
0

# DLR. ...

0

Source: https://habr.com/ru/post/1708309/


All Articles