Will lambdas be inline?

Steven Stewart-Gallus stevenselectronicmail at gmail.com
Sun Apr 12 04:14:22 UTC 2020


Hi

I was curious if lambdas will be inline?
I feel this is pretty natural.
You're already not really supposed to be doing these kinds of things with
lambdas.
Technically you could spin both depending on the situation.

Correct me if I'm wrong but under the current plan you'd need to use
InlineCont for the best performance.

interface Cont {
    Cont next();
}

interface InlineCont extends InlineObject {
    InlineCont next();
}

interface IdentityCont extends IdentityObject {
    IdentityCont next();
}

Slightly unfortunate because I think it's highly unlikely many interfaces
will break compat for a slight perf boost.

And if lambdas are inline than would IdentityCont not be a functional
interface?
Thanks
Steven Stewart-Gallus


More information about the valhalla-spec-comments mailing list