[Cuis] Copy vs Clone
Juan Vuletich
juan at jvuletich.org
Sat May 16 15:44:04 CDT 2015
On 5/15/2015 12:03 PM, Ken.Dickey wrote:
> 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".
Right. Just did a commit, and amongst several things, I changed #isClean
to #isTrivialClosure .
> 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
>
Thanks for the read. Enhancing support for Closures, and why not?
integrating them with Traits are interesting trails to walk.
Cheers,
Juan Vuletich
More information about the Cuis
mailing list