proposal-function.sent icon indicating copy to clipboard operation
proposal-function.sent copied to clipboard

Consistent naming: "LastYieldValue" and "resumptionValue"

Open Andrew-Cottrell opened this issue 4 years ago • 1 comments

My current — and potentially incorrect — understanding is that the proposed LastYieldValue component of genContext is almost the same thing as the received.[[Value]] mentioned in

And, perhaps also, almost the same thing as the Completion resumptionValue, mentioned in

If this understanding is correct, it may be less confusing — for specification readers — to rename LastYieldValue to ReceivedValue, and to rename resumptionValue to receivedValue.

Or, maybe, rename them all

  • received.[[Value]]sent.[[Value]]
  • resumptionValuesentValue
  • LastYieldValueSentValue

Alternatively, if received.[[Value]], resumptionValue, and LastYieldValue are conceptually distinct, it might be helpful to include a non-normative note.

Andrew-Cottrell avatar Feb 18 '21 15:02 Andrew-Cottrell

I believe they are same, so yes I think we should rename LastYieldValue to ReceivedValue.

But resumptionValue name is ok because it's for the sender side.

hax avatar May 24 '22 21:05 hax