Questions tagged [deferred-execution]
219 questions
13
votes
6 answers
Deferred assignment in pure javascript
In this question I encountered the following simplified problem:
We start with an array of Objects with a value attribute. We want to calculate for each value what percentage of the sum of values it is, and add it to the structure as a property. To…

Sumurai8
- 20,333
- 11
- 66
- 100
13
votes
3 answers
Deferred evaluation with lambda in Python
In a loop, I am trying to defer the comparison the two value()s of two Nodes to a later time.
class Node():
def __init__(self, v):
self.v = v
def value(self):
return self.v
nodes = [Node(0), Node(1), Node(2), Node(3),…

Albeit
- 738
- 10
- 21
12
votes
6 answers
Expose IQueryable Over WCF Service
I've been learning about IQueryable and lazy loading/deferred execution of queries.
Is it possible to expose this functionality over WCF? I'd like to expose a LINQ-to-SQL service that returns an IQueryable which I can then perform additional queries…

Trust
- 225
- 1
- 4
- 11
12
votes
1 answer
gometalinter / errcheck returns a warning on deferring a func which returns a variable
gometalinter and errcheck return me a warning about deferring a function which returns a variable.
Example in a web request:
defer r.Body.Close()
In this case, Close returns an error variable and it's not checked.
Is the best method / idiomatic to…

Andrea Sessa
- 838
- 8
- 16
12
votes
2 answers