Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Brian Bondy
Hub FS
Full List

Browse by Tags

All Tags » F# » C#   (RSS)
Using F# Discriminated Unions in C# (Beta2)
While updating my VsVim editor extensions for Beta2 [1] I got hit by a change in the way F# exposed discriminated unions in metadata.  My extension consists of a core F# component with a corresponding set of unit tests written in C#.  It’s mostly Read More...

Posted Tuesday, October 27, 2009 8:00 AM by Jared Parsons | 5 Comments

Comparing Continuations in C# and F# Part 3: Double wrong
Is it better to be wrong once or to be right then think you’re wrong but find out you were right but wrong about being wrong? Besides the obvious be right the first time, it’s certainly an educational experience.  Here’s the original sample: let Read More...

Posted Thursday, November 13, 2008 8:00 AM by Jared Parsons | 1 Comments

Filed under: ,

Comparing Continuations in C# and F# Part 2
In my last post I went over the differences between using a continuation in F# and C# . As it turns out I was right about the limits and symptoms but wrong about the reason. The F# code does indeed generate tail calls for part of the continuation. However Read More...

Posted Tuesday, November 11, 2008 11:38 AM by Jared Parsons | 3 Comments

Filed under: ,

Comparing Continuations in F# and C#
Lately I’ve been playing quite a bit with F#.  I have several hobby projects I’m working on that take up a bit of my time.  But when I’m not playing around with F# I’m exploring ways to apply certain functional patterns to actual coding on the Read More...

Posted Monday, November 10, 2008 8:00 AM by Jared Parsons | 4 Comments

Filed under: , ,

Functional C#: Providing an Option Part 2
In my previous post I discussed creating an Option style construct for C#/.Net.  This post is a followup with the complete code snippet.  It’s been updated in response to several bits of feedback I received.  Namely Option is now a struct Read More...

Posted Wednesday, October 08, 2008 8:00 AM by Jared Parsons | 3 Comments

Filed under: , ,

Unfold
F# has a handy method called Unfold.  Think of it as the logical opposite of an Aggregate function.  Aggregates take a sequence of elements and convert them to a single element.  An unfold method will take a single element and turn it into Read More...

Posted Tuesday, October 07, 2008 8:00 AM by Jared Parsons | 3 Comments

Filed under: , , ,

Functional C#: Providing an Option
Sorry for the terrible pun in the title.  I wanted to blog about developing an F# style Option class for C# and I couldn't resist. The basics of an Option class are very straight forward.  It's a class that either has a value or doesn't.  Read More...

Posted Monday, October 06, 2008 8:00 AM by Jared Parsons | 5 Comments

Filed under: , , ,

Page view tracker