Ian Cooper continues his series of 3 talks on domain specific languages DSL. He talks about fluent interfaces and how they can be created using extension methods. Fluent interfaces provide a ‘discoverable’ API which is easier to read...
Ian then gives a demonstration of how fluent interfaces can be created and how discoverable the API really is.
Ian then introduces Closures. Closures are basically a generic name for treating a function as data. It is generally done using a lambda expression. Ian explains how this can be done within DSLs and where it is useful. He also gives a demonstration of it being used. Ian finishes with an introduction to Parse Trees and how all of these features can be used in real world DSLs.
YOU MAY ALSO LIKE:
- Modern Application Development with C# and .NET Core (in London on 3rd - 6th September 2018)
- ProgNET London 2018 (in London on 12th - 14th September 2018)
- Fast Track to F# with Tomas Petricek & Phil Trelford (in London on 20th - 21st September 2018)
- Scala Advanced with Dick Wall (in London on 10th - 12th December 2018)
Using Expression Trees for internal DSLs in C# 3.5
Ian Cooper has over 20 years of experience delivering Microsoft platform solutions in government, healthcare, and finance. When he is not writing C# code he is also the and founder of the London .NET user group.