deduplicating lambda methods
Liam Miller-Cushon
cushon at google.com
Sun Mar 18 02:04:13 UTC 2018
On Sat, Mar 17, 2018 at 12:42 PM Vicente Romero <vicente.romero at oracle.com>
wrote:
> Attached there is a patch, as in hack-ish, quick, use with care, to be
> applied on top of last Liam's patch that considers constant values in
> the trees. This patch allows to deduplicate lambdas like:
>
> Function<Integer, Integer> l1 = i -> 2 + 3; and:
> Function<Integer, Integer> l2 = i -> 5;
>
Nice! I understand now, that's less complicated than what I had been
imagining.
You mentioned a 'normalization' step earlier. Is that something that would
still be necessary with this approach?
More information about the amber-dev
mailing list