All Questions
Tagged with functional-programming programming-languages
60 questions
6
votes
2
answers
1k
views
How is reactive logic programming different from functional programming?
As Reactive Programming model is perfectly suited to address the change propagation required for transaction processing, that is, when the server receives change (Insert, Update, or Delete) requests. ...
13
votes
8
answers
6k
views
How do compilers work in a language that doesn't allow recursion?
I'm recently learning the programming language, and I wonder how compilers work when the language itself does not allow recursion, like how the compiler or the runtime checkers makes sure that there ...
11
votes
1
answer
3k
views
Are "normal order" and "call-by-name" the same thing?
I was studying the book Structure and Interpretation of Computer Programs and in section 1.1.5 The Substitution Model for Procedure Application the author explains the concepts of normal order and ...
-2
votes
4
answers
247
views
Block structured iteration and recursion
Programming languages traditionally have blocks that specifically cater to controlling iteration.
There is the simple while-loop:
while (i < 3) {...};
Then there is the more complicated for-loop:
...
75
votes
4
answers
16k
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 ...
3
votes
1
answer
188
views
Choosing the design of a scientific DSL: purely or impurely functional?
My aim is to create a language specific to the scientific field (which would be used mainly in the field of machine learning and physics) which would be based on the functional paradigm, a paradigm ...
17
votes
4
answers
3k
views
What is an example of a continuation not implemented as a procedure?
An interesting discussion about the distinction between callbacks and continuations over on SO has prompted this question. By definition, a continuation is an abstract representation of the logic ...
8
votes
3
answers
3k
views
Should we be using functional and/or logic programming languages more?
I've programmed a bit of Haskell and Prolog as part of a couple of uni courses, but that's about it. And I've never seen it been used in industry (not that I've had much of working experience to begin ...
3
votes
3
answers
236
views
Precisely define "what to solve" and "how to solve" corollary in functional and imperative programming respectively
I am not sure if I ever clearly understood standard corollary "what to solve" and "how to solve" used to point out difference between functional (declarative) and imperative programming paradigm ...
-1
votes
1
answer
155
views
Reactive programming language [closed]
I had been using react-js and really like its concept so I want to know if there is a programming language/framework that sort of works like it. For instance, I want to define:
var A = something
var ...
43
votes
7
answers
10k
views
Functional Programming on the rise?
I have noticed lately that functional programming languages are gaining popularity. I recently saw how the Tiobe Index shows an increase in their popularity in comparison to the last year although ...
5
votes
3
answers
2k
views
In functional programming, what it means "Order of evaluation does not matter" when function is pure?
In context of pure functions in FP, apart from several benefits mentioned like easy to reason about, testability it also says "order of evaluation does not matter" since output remains same for given ...
36
votes
6
answers
6k
views
Why do some functional programming languages use a space for function application?
Having looked at some languages for functional programming, I always wondered why some fp-languages use one or more whitespace characters for function application (and definition), whereas most (all?) ...
54
votes
11
answers
12k
views
"Easy to reason about" - what does that mean? [closed]
I have heard a lot of times when other developers use that phrase to "advertise" some patterns or developing best practices. Most of the time this phrase is used when you are talking about benefits of ...
2
votes
2
answers
416
views
Strategy for implementing Multiple Dispatch
This is a question regarding how Multiple Dispatch works.
Suppose that we have a type hierarchy like this:
Drawable -> Shape -> Polygon -> Rectangle
And there are three functions (This is ...