imperative-programming Questions
22
Solved
I have been searching the web looking for a definition for declarative and imperative programming that would shed some light for me. However, the language used at some of the resources that I have ...
Kowtko asked 23/11, 2009 at 17:24
4
Solved
(I hope this question is on-topic -- I tried searching for an answer but didn't find a definitive answer. If this happens to be off-topic or already answered, please moderate/remove it.)
I remembe...
Smalltime asked 8/7, 2011 at 9:31
6
Solved
I have been too used to Imperative Programming which is the usual way of telling the computer to perform step by step the procedure to get the final result. On the other hand, declarative programmi...
Boswell asked 7/6, 2012 at 4:32
9
Solved
One of the main characteristics of functional programming is the use of side-effectless functions. However, this can be done in an imperative language also. The same is true for recursion and lambd...
Sadness asked 23/11, 2009 at 14:13
13
Solved
What languages are available that promote both object-oriented and functional programming? I know that any language that supports first-class functions can be considered functional, but I'm looking...
Globigerina asked 18/6, 2009 at 22:55
2
Solved
I am following the Rust track on Exercism.io. I have a fair amount of C/C++ experience. I like the 'functional' elements of Rust but I'm concerned about the relative performance.
I solved the 'run...
Anode asked 14/4, 2019 at 12:7
4
Please, can somebody explain me what are the advantages of using reactive style:
Observable<String> greeting = Observable.just("Hello");
Observable<String> yelling = greeting.map(s -&g...
Nilson asked 11/11, 2017 at 17:33
1
Solved
I am interested in using more efficient pointers for a project implementing an imperative language in Haskell. There is already a library for that: Struct. There is a blog post on it and brief docu...
Haematoxylon asked 25/4, 2017 at 3:45
4
Solved
How should I monitor the progress of a mapped function in clojure?
When processing records in an imperative language I often print a message every so often to indicate how far things have gone, e....
Quintero asked 7/1, 2010 at 19:9
3
Solved
This is a question I read on some lectures about dynamic programming I randomly found on the internet. (I am graduated and I know the basic of dynamic programming already)
In the section of explain...
Solomon asked 7/9, 2016 at 7:39
7
Solved
I'm learning a lot more about Java 8 and its functional capabilities, and I wanted to do some more practice with it. Say, for example, I have the following imperative code which is for wrapping a c...
Laryngotomy asked 10/10, 2015 at 20:24
4
Solved
I am trying to find the most elegant way of converting the following stateful imperative piece of code to pure functional representation (preferably in Haskell to use abstraction that its Monad imp...
Surratt asked 4/9, 2015 at 12:39
4
Solved
In OCaml, imperative-style loops can be exited early by raising exceptions.
While the use of imperative loops is not idiomatic per se in OCaml, I'd like to know what are the most idiomatic ways to...
Detection asked 19/6, 2015 at 11:25
4
Solved
So, pattern matching in functional languages is pretty awesome. I wondering why most imperative languages haven't implemented this feature? To my understanding, Scala is the only "mainstream" imper...
Earldom asked 31/7, 2014 at 19:20
5
It is quite confusing to know difference between Imperative and Declarative programming can any one explain difference between both in real world terms?
Kindly clarify whether C is an Imperative o...
Hackman asked 24/2, 2014 at 4:5
3
Solved
So I'm currently in a class learning about the 3 major programming paradigms. I know that python uses both the functional and imperative paradigms. I was looking for a short sample code in python o...
Exuviae asked 20/2, 2014 at 0:19
2
Solved
I have a general question about interpreters of functional languages:
Are there actually any advantages to using a functional language versus an imperative language at runtime (or that make their ...
Lapidate asked 20/6, 2012 at 3:24
3
Solved
According to the F# spec (see §6.5.7), simple for loops are bounded by integer (int aka int32 aka System.Int32) limits start and stop, e.g.
for i = start to stop do
// do sth.
I wonder why the ...
Niles asked 16/4, 2013 at 19:53
4
One of the promises of side-effect free, referentially transparent functional programming is that such code can be extensively optimized.
To quote Wikipedia:
Immutability of data can, in many ca...
Exceptional asked 16/1, 2013 at 11:57
1
Solved
How do I successfully throw away the return value of a function and treat it as if it's returning unit (for side-effects, obviously). The obvious approach is to do this:
let foo = begin
some_igno...
Weave asked 6/3, 2013 at 10:37
3
Solved
I've been watching this MSDN video with Brian Beckman and I'd like to better understand something he says:
Every imperitive programmer goes through this phase of learning that
functions can be ...
Quarterage asked 7/12, 2012 at 15:51
5
I was reading an article on Declarative Programming Languages.
If I don't understand the qualities of this type/paradigm of programming languages and it's contrast to Imperative languages, s...
Helmet asked 30/8, 2012 at 2:43
4
Solved
From the Programming in Scala (second edition), bottom of the p.98:
A balanced attitude for Scala programmers
Prefer vals, immutable objects, and methods without side effects.
Reach for the...
Rolon asked 1/2, 2012 at 10:3
2
Solved
I have been trying to understand this algorithm for past two hours, but can't seem to get it. Can someone please explain it in easy to understand manner?
function lis_length(a)
n := a.length
q :...
Henriques asked 2/9, 2011 at 14:5
13
Solved
These days I'm getting seriously into functional programming.
While I'm really excited about Haskell and the possibilities it seems to offer, I can also see now that it is going to take me ...
Lyingin asked 21/6, 2009 at 19:24
1 Next >
© 2022 - 2024 — McMap. All rights reserved.