Category Archives: Functional Inspiration

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

Scala.io, seen by a .NET guy

As you might have noticed, I’m a .NET guy. I work on a Microsoft platform, with almost only Microsoft tools. But I happen to also be a functional programming fanboy now. My main interest is in F#, but I’m also … Continue reading

Posted in Events, Functional Inspiration | Tagged , , , , , | Comments Off

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

Pattern matching in C# – part 1

In my previous post, I tried to explain what pattern matching is, and in particular the F# match expression, that I’m trying to mimic in C#. For my first attempt, I’ll try to analyse the matching cases that can apply … Continue reading

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