Relative Content

Tag Archive for f#

When do you use a class instead of a record when you do not want to use mutable fields?

I’m imagining a situation where you are creating an F# module in a purely functional style. This means objects do not have mutable fields and are not modified in place. I’m assuming for simplicity that there is no need to use .NET objects or other kinds of objects. There are two possible ways of implementing an object-oriented kind of solution: the first is to use classes and the second to use records which have fields of functional type, to implement methods.

Are There Other Use Cases For F# Type Providers?

So I think I know the main use case for F# 3.0’s Type Providers, i. e. better Intellisense when working with data stores that use them. Are there other use cases for Type Providers or is that pretty much it?

Why Does F# Contain Both Modules and Namespaces?

I’ve been assuming that F# includes the module keyword in addition to the namespace keyword due to backwards compatibility with OCaml. Is this the only reason for the inclusion of the module keyword or are there other reasons module was included?

Fastest Functional Language

I’ve recently been delving into functional programming especially Haskell and F#, the prior more so. After some googling around I could not find a benchmark comparison of the more prominent functional languages (Scala,F# etc).