deduplicating lambda methods
Vicente Romero
vicente.romero at oracle.com
Mon Mar 19 12:55:11 UTC 2018
On 03/17/2018 10:04 PM, Liam Miller-Cushon wrote:
> On Sat, Mar 17, 2018 at 12:42 PM Vicente Romero
> <vicente.romero at oracle.com <mailto: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?
no I don't think it will be necessary anymore
Vicente
More information about the amber-dev
mailing list