Tagged Questions
6
votes
3answers
1k views
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 ...
8
votes
3answers
344 views
Why is the rec keyword needed in F#?
In F# it is necessary to use the rec keyword. In Haskell there is no need to explicitly tell if a given function is recursive or not.
Given the role of recursion in functional programming, the F# ...
1
vote
2answers
213 views
How do functional languages handle a mocking situation when using Interface based design?
Typically in C# I use dependency injection to help with mocking;
public void UserService
{
public UserService(IUserQuery userQuery, IUserCommunicator userCommunicator, IUserValidator userValidator)
...
13
votes
5answers
1k views
How to make the transition to functional programming?
Lately, I have been very intrigued with F# which I have been working a bit with. Coming mostly from Java and C#, I like how concise and easily understandable it is. However, I believe that my ...
6
votes
3answers
333 views
Design in “mixed” languages: object oriented design or functional programming?
In the past few years, the languages I like to use are becoming more and more "functional". I now use languages that are a sort of "hybrid": C#, F#, Scala. I like to design my application using ...
9
votes
4answers
2k views
Example of where Functional Programming is Superior to Imperative or Object-Oriented Programming? [duplicate]
Possible Duplicate:
Which problems domains are more suited to functional programming solutions
I've been reading about functional programming. I've been using mostly C#.net recently, and ...
4
votes
3answers
454 views
How can I translate ML code to F#?
Recently I found a book, Purely Functional Data Structures and all the examples in this book are given in ML with Haskell versions in its appendix. But I only know one programming language with the ...
12
votes
5answers
448 views
How should someone used to FP thinking read imperative code?
I graduated from university about five months ago, and have been working in a local startup for past four months. While at university, I studied Haskell, F# etc on my own. We were taught Java at the ...
1
vote
4answers
442 views
Usage of “Multi-Paradigm Languages” in commercial applications
I am currently learning the two languages F-Sharp and Scala. These two languages are, in my opinion, both quite comprehensive to grasp.
Nonetheless, what seems to make Scala and F-Sharp similar, is ...
11
votes
4answers
706 views
Functional Programming — Immutability
I am trying to understand dealing with immutable data in FP (specifically in F#, but other FP’s are ok as well) and break the old habit of state-full thinking (OOP style).
A part of the selected ...
7
votes
6answers
672 views
Reading SICP with F#? [closed]
I've been meaning to read the SICP book for a while, and am finally about to get around to it (now that I can read it on Kindle :) I'd like to learn a functional language, and I use C# at work so ...
10
votes
7answers
914 views
Arguments for Functional Programming
I've recently been learning F# for fun (I'm a VB.NET/C# dev), and I really like some of what it has to offer. Theoretically that is. But I'm having trouble thinking up of scenarios where I would ...
12
votes
9answers
2k views
How do I explain what's good about F#?
Many people ask me to explain to them why is F# (or other functional languages) better (or different) than other languages they know (like Java, C#, C++).
Until today, I either tried showing few ...
36
votes
4answers
2k views
What are the biggest differences between F# and Scala?
F# and Scala are both functional programming langugages that don't force the developer to only use immutable datatypes. They both have support for objects, can use libraries written in other languages ...