Tagged Questions
52
votes
6answers
10k views
Is a program F# any more efficient (execution-wise) than C#?
I'm guessing that it is not because they both boil down to the same IL
47
votes
9answers
3k views
In what areas does F# make “absolute no sense in using”?
Don Syme in his SPLASH talk says that F# is NOT intended to be a replacement for C# even though it has the general capabilities. He goes on to say that there are areas where F# makes no sense in ...
46
votes
5answers
23k views
List of strings to one string
Lets say you have a:
List<string> los = new List<string>();
In this crazy functional world we live in these days which one of these would be best for creating one string by ...
43
votes
8answers
13k views
Why should I use F#? [closed]
I write client-server based business applications using .Net and C#. Given this, how would F# enable me to write better code? "Better" in any sense, e.g. faster coding, faster execution, better ...
36
votes
13answers
7k views
Coolest C# LINQ/Lambdas trick you've ever pulled?
Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder...
What's the coolest (as in the most elegant) use of the C# LINQ and/or ...
33
votes
14answers
9k views
Immutable object pattern in C# - what do you think?
I have over the course of a few projects developed a pattern for creating immutable (readonly) objects and immutable object graphs. Immutable objects carry the benefit of being 100% thread safe and ...
29
votes
9answers
3k views
Functional Programming in C# vs LISP
What are the primary differences between LISP and C# with regards to functional programming? In specific, if a LISP programmer was to switch to using C#, what are the features they are most likely to ...
28
votes
8answers
5k views
When to use closure?
I have seen samples of closure from - http://stackoverflow.com/questions/36636/what-is-a-closure
Can anyone provide simple example of when to use closure?
Specifically, scenarios in which closure ...
25
votes
18answers
3k views
How to replace for-loops with a functional statement in C#?
A colleague once said that God is killing a kitten every time I write a for-loop.
When asked how to avoid for-loops, his answer was to use a functional language. However, if you are stuck with a ...
23
votes
6answers
7k views
Why is F# so special?
In the microsoft and .net world, is there an industry trend towards F# and functional programming, moving away from C# and VB.NET?
What is it about F# that is so special? What does it provide that ...
18
votes
8answers
3k views
Why is C# a functional programmming language?
It has been said that C# can be regarded as a functional programming language, even though it is widely recognized as a OO programming language.
So, what feature set makes C# a functional programming ...
16
votes
8answers
1k views
What are the advantages of built-in immutability of F# over C#?
I heard F# has native support for immutability but what about it that can not be replicated in C#? What do you get by an F# immutable data that you don't get from a C# immutable data?
Also in F#, is ...
15
votes
7answers
9k views
What is F#? What can it do that C# can't? [closed]
I recently heard about F#.
I wonder why the .NET world needs another programming language?
What's the deal?
Is there a problem that C# cant solve and F# can?
Is F# a dynamic language?
[Update :Be ...
14
votes
15answers
3k views
What task is best done in a functional programming style?
I've just recently discovered the functional programming style and I'm convinced that it will reduce development efforts, make code easier to read, make software more maintainable. However, the ...
14
votes
9answers
1k views
How difficult is it to learn F# for experienced C# 3.0 developers?
How difficult is it to learn F# for experienced C# 3.0 developers, and/or what would you say is the most difficult part of learning F#?