Functional Spreadsheet in F#

For anyone interested in how to solve a real problem using F#, I suggest reading this post on Developer Fusion. It is an implementation of the core functionality of a spreadsheet. It includes a full parsing and expression evaluation engine, plus databinding and display (silverlight… eww, but it’s mainly so you can try it in your browser). Reading it and looking at the use of Active Patters, Pattern Matching and Discriminated Unions really drives home how language features can lead to clear and concise implementations of algorithms that are often awkward to implement in true OO fashion.

The full code snippet is available here, and can be run inside your browser here.


Tagged , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: