3 ms·
In C# plenty of things embed IL, they just use the Reflection.Emit APIs to do that and don't have a direct embedded DSL. An advantage to C#'s dynamic over Refl
by WorldMaker 3y ago
In C# plenty of things embed IL, they just use the Reflection.Emit APIs to do that and don't have a direct embedded DSL.
An advantage to C#'s dynamic over Reflection.Emit is that it uses System.Linq.Expressions under the hood. There's a lot of cool advantages to do that, including higher level caching and sharing a lot of the same infrastructure of IQueryable (and IQbservable, the Q there is not a typo). The DLR remains an underappreciated bit of great .NET engineering. (It doesn't help that most of the Iron languages went to maintenance bitbuckets.)
(In a past life I did some amazing things with the DLR.)