-
Notifications
You must be signed in to change notification settings - Fork 33
Options for specifying generator behavior #97
Comments
Re: 3, it would be a function which does validation and then uses a spec-internal generator, right? Doing validation when invoked rather than I'm OK with 2 or 3. I lean towards 2, but not strongly. |
Yes, that's right.
I agree. |
Same. |
@michaelficarra I'm going to meet with @ljharb and @bakkot, and I hope @devsnek at 2PM Pacific time today to discuss this. Please join us if you can; we'll gather in #tc39-delegates on IRC, then probably meet on Zoom. |
K I'll be there. |
At this meeting, we settled on a hybrid approach. Not set in stone, but my understanding is that everyone agrees this is the direction we want to go:
|
Thanks for the update @jorendorff!
I'm a bit disappointed by that (it's a user-visible distinction from option 2), could you explain the arguments for this? I would have thought it would be possible to cut down the spec text for multiple objects in the same manner as for The TypedArray Constructors, their properties, and their prototype objects. This would also allow using the new spec syntax for the existing string/array/map/set iterators. |
@Bergmaier one motivation is to ensure that it's not automatically an observable (and thus breaking) change to add a There doesn't need to be any correlation between "keeping the spec text small" and "the number of user-visible objects". |
Closed by #112 |
Hi Folks,
This discussion began in #86.
Jason just presented this slide deck: https://docs.google.com/presentation/d/1QVW_d4lpiFQ5X5czGWq0VMRN9cMLIGpt888TQoyFWpg/edit#slide=id.p
And we had these example write ups: https://gist.github.com/jorendorff/35504c2553170be98fc2810ccf60c608
We have 3 options summarized here
Let's continue the discussion we had in the call here, and see if we can get to a solution.
The text was updated successfully, but these errors were encountered: