Languages  >>  .net

DSLs with C# 3.5

Language: English Quality: Average Has Audio: true Source: SkillMatter Media: Flash Posted On: 06 Feb 09
LINQ is an internal DSL provided by C# for accessing streams of data. We can leverage the same feature set added to the language to make LINQ to author our own internal DSLs. In this session Ian introduces you to the ideas behind Internal DSLs and shows how C# 3.5 helps you to write them.

In this session, Ian Cooper talks about Internal DSLs and demonstrates how to use LINQ in C# applications with live examples.

A Domain-Specific Language (DSL) can be defined as a programming language targeted at a particular kind of problem. It is not meant to be used for problems outside of its domain. DSLs are particular ways of using a host language (in our case, the C# language) to shape the feel of a particular language. An internal DSL is limited to the syntax and structure of its base language.

Language Integrated Query (LINQ) extends C# and VB with native language syntax for queries and provides class libraries to take advantage of these capabilities. LINQ to SQL provides a run-time infrastructure for managing relational data as objects without losing the ability to query.

Nested Closures are another topic covered in the talk. A Nested Closure is similar to that of Nested Function, but the child expressions of the function call are wrapped in a closure

Tags: SkillMatter, screencast, DSL, c#, c# 3.5, LINQ, sql, .net,     [SUGGEST  A  TAG]

Created : 2008-11-29      Resolution : 420x339   Format : Flash