F# development and unit testing? [closed]

Test-driven developers should feel right at home in functional languages like F#: small functions that give deterministically repeatable results lend themselves perfectly to unit tests. There are also capabilities in the F# language that facilitate writing tests. Take, for example, Object Expressions. You can very easily write fakes for functions that take as their input … Read more

Haskell composition (.) vs F#’s pipe forward operator (|>)

In F# (|>) is important because of the left-to-right typechecking. For example: List.map (fun x -> x.Value) xs generally won’t typecheck, because even if the type of xs is known, the type of the argument x to the lambda isn’t known at the time the typechecker sees it, so it doesn’t know how to resolve … Read more

Why is this F# code so slow?

The problem is that the min3 function is compiled as a generic function that uses generic comparison (I thought this uses just IComparable, but it is actually more complicated – it would use structural comparison for F# types and it’s fairly complex logic). > let min3(a, b, c) = min a (min b c);; val … Read more

F# changes to OCaml [closed]

This question has been answered for some time now, but I was quite surprised that most of the answers say what OCaml features are missing in F# – this is definitely good to know if you want to port existing OCaml programs to F# (which is probably the motivation of most of the referenced articles). … Read more

What are the primary differences between Haskell and F#? [closed]

Haskell is a “pure” functional language, where as F# has aspects of both imperative/OO and functional languages. Haskell also has lazy evaluation, which is fairly rare amongst functional languages. What do these things mean? A pure functional language, means there are no side effects (or changes in shared state, when a function is called) which … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)