by ilyt · 3y ago · 0 comments
Do you have any examples ? About only that I can think of is "parse something to a bunch of different types" and that can be solved easily enough. What do you mean by "reusing results" ?
> Something like go-future helps. https://github.com/stephennancekivell/go-future
f := future.New(func() string {
return "value"
})
value := f.Get()
that looks pretty awkward. with channels it would just be f := Async(func() Type{return t})
v := <- fWritten more concisely.
f := New(func() Type{return t}) v := g.Get() w := g.Get()
Programmer write cost <<<<<<<<< read cost