Tag Archives: AST

Pattern matching in C# – part 4 – more tuples

DISCLAIMER: this post has been written months ago and never posted. By that time I was still trying to bring F# goodness to C#. This might be easier today with Roslyn, but that is not the path I’ve taken. Since … Continue reading

Posted in Functional Inspiration, Syntax Puzzles | Tagged , , , , | 2 Comments

Pattern matching in C# – part 3 – tuples

Hello again, you potential RSS subscriber (probably still reading this in Google Reader, trying to determine which reader you’ll choose next) ! Last time I left you with a working pattern-matching mechanism in C#, but very limited… as it could … Continue reading

Posted in Functional Inspiration, Syntax Puzzles | Tagged , , , | Comments Off

Pattern matching in C# – part 2

Last time, I just stopped before generating any real expression tree… Now is the perfect time to continue the process ! In order to handle match expressions where none of the expressions would match a given candidate, I decided to … Continue reading

Posted in Functional Inspiration, Syntax Puzzles | Tagged , , , | Comments Off

Using BDD and SpecFlow to write readable tests

In this post, I’m going to use SpecFlow and the Gherkin syntax to write tests in a natural language. I want to show how easy that is to setup, when you have code that is already testable, and how it … Continue reading

Posted in LINQ | Tagged , , , , , | Comments Off

Linq provider : an attempt… part 6

Jammin’ Jammin’ Just a month ago, I’ve had the opportunity to get feedback from @cyriux and Jérôme during the monthly @ArollaFr’s Code Jam, and we made important changes in the code. The concept of a Code Jam is simple : … Continue reading

Posted in LINQ | Tagged , , , | Comments Off