[Cuis] Copy vs Clone

Ken.Dickey Ken.Dickey at whidbey.com
Fri May 15 10:03:02 CDT 2015


On Fri, 15 May 2015 10:33:46 -0300
Juan Vuletich <juan at jvuletich.org> wrote:
...
> So, I recommend (as general advice) to use clean closures if at all 
> possible ...

> I hope all this makes sense for you.

Very good sense, but for #clean I would substitute the term #trivial, which makes more sense in this context.

After all, closures are called closures because they "close over their environment".

Trivial closures are more akin to Traits.  We could split closures, including nested closures, into trivial code blocks and their associated environment vectors.

The basics are covered in:
  http://www.iro.umontreal.ca/~feeley/papers/FeeleyLapalmeCL92.pdf

-- 
-KenD




More information about the Cuis mailing list