Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Riobe
· 7y ago · 0 comments
If your values are expensive to compute like that, then you'd have the object return a function that would call foo(), bar(), and so on; and you wouldn't call them all to setup the map in the first place.
Comments
[–]
Izkata
7y ago
This is in fact demonstrated in the second example in "Working with functions"...