Category Archives: Functional Inspiration

Pattern matching in C# – introduction

Although bringing real pattern matching to C# in not my objective, I’ve tackled yet another syntax puzzle, trying to build a “sort-of” F#-ish pattern-matching-like syntax. Disclaimer : as you can see from the quotes and italic, don’t expect me to … Continue reading

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

Functional Inspiration – A simple Option type

In F#, the option type is a built-in Discriminated Union type which allows to handle nicely the fact that an expression can represent some value or none. In C#, we have almost this construct when we use the Nullable<T>, but … Continue reading

Posted in Functional Inspiration | Tagged , | Comments Off

Functional Inspiration – Revisiting the With extension method

Return to the very first post for improvement This is the fourth entry of a blog series about how functional programming, and the F# training I recently went to, gives me inspiration in my day-to-day work in C#. It is … Continue reading

Posted in Functional Inspiration | Tagged , | Comments Off

Functional Inspiration – Irrelevantable, part 2

Trying to express something more than Nullable<T> Friday evening, the girls are in bed, the wife is out with friends… It seems that it is the perfect time to finish this post ! This is the third entry of a … Continue reading

Posted in Functional Inspiration | Tagged , | Comments Off

Functional Inspiration – Irrelevantable, part 1

Trying to express something more than Nullable<T> This is the second entry of a blog series about how functional programming, and the F# training I recently went to, gives me inspiration in my day-to-day work in C#. This post will … Continue reading

Posted in Functional Inspiration | Tagged , | Comments Off