You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Be consistent about where ToComputedValue implementations live. #19670
We should decide whether they should live in computed or specified. I don't have a particularly strong preference, and the only argument I've heard (from @mauricioc and @nox IIRC) is that ideally specified modules shouldn't depend on computed ones, and making complex cases depend on that makes the code intrincate.
I think that's a valid point, so lacking other arguments I'd be fine moving all them to computed. But I bet there can be other arguments in the other direction, so given this isn't particularly urgent we can wait and discuss for as long as needed :)
IMO, I'll vote for impl ToComputedValue inside specified modules because I think it's reasonable to make associated types of impl ToComputedValue with its computed module.
We can see that we'd like to implement ToComputedValue trait and make its associated type with its own computed module.
I'm also fine for moving all of them in specified modules but just share my opinion.
Activity
emilio commentedon Jan 1, 2018
We should decide whether they should live in
computedorspecified. I don't have a particularly strong preference, and the only argument I've heard (from @mauricioc and @nox IIRC) is that ideallyspecifiedmodules shouldn't depend oncomputedones, and making complex cases depend on that makes the code intrincate.I think that's a valid point, so lacking other arguments I'd be fine moving all them to
computed. But I bet there can be other arguments in the other direction, so given this isn't particularly urgent we can wait and discuss for as long as needed :)CYBAI commentedon Jan 2, 2018
IMO, I'll vote for
impl ToComputedValueinsidespecifiedmodules because I think it's reasonable to makeassociated typesofimpl ToComputedValuewith itscomputedmodule.We can see that we'd like to implement
ToComputedValuetrait and make its associated type with its owncomputedmodule.I'm also fine for moving all of them in
specifiedmodules but just share my opinion.nox commentedon Jan 2, 2018
IIRC, I prefer to put them in
specified, but I don't remember it well and I'm still on holidays. We can discuss about that next Monday.