On Tue, Apr 10, 2012 at 3:12 AM, Joel Falcou <joel.falcou@lri.fr> wrote:
On 10/04/2012 00:00, Eric Niebler wrote:
Thanks. I thought long about whether to handle the fundamental types
differently than user-defined types and decided against it. The
capture-everything-by-reference-by-default model is easy to explain and
reason about. Special cases can be handled on a per-domain basis as needed.

By-value capture of fundamental type is the classical way people do it in hand-made ET code. The ad-hoc support in proto is IMHO better as you may really want to capture reference and by the status of Proto of a EDSL toolkit, flexibility is really wanted :).


Right. I agree with your opinion.

Maybe by defining another domain like "default_domain_fundamental_by_value" (please don't use that name :-)).
Thus, the user saves typing "as_child" if all she/he is looking for is to change this behavior.

Regards,
Fernando.