Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark internal slots that the spec always initializes. #271

Merged

Conversation

jyasskin
Copy link
Member

Marking them instead of saying their initial value is undefined, makes
it easier to see if I accidentally introduce an uninitialized path.

Preview at https://api.csswg.org/bikeshed/?url=https://github.com/jyasskin/web-bluetooth-1/raw/mark-always-initialized-fields/index.bs#dom-bluetoothdevice-context-slot

@g-ortuno
Copy link
Contributor

g-ortuno commented Aug 11, 2016

Does the "<always initialized>" mean we always expect them to be set when initializing the device object?

@jyasskin
Copy link
Member Author

Yep. Any ideas for how to say that more clearly?

@jyasskin jyasskin force-pushed the mark-always-initialized-fields branch from de3e7ca to cce75de Compare August 11, 2016 22:31
@g-ortuno
Copy link
Contributor

Can't think of anything less verbose 😞 Is that what's usually used in specs?

@jyasskin
Copy link
Member Author

We're in uncharted territory here. https://streams.spec.whatwg.org/ is the only spec I know of that uses these tables, and it doesn't initialize any slots there. @domenic, any suggestions?

@jyasskin
Copy link
Member Author

I could imagine <initialized in prose>, for instance.

@domenic
Copy link

domenic commented Aug 11, 2016

Maybe just "set in prose" or "always set in prose"? I think any of these are reasonable.

Marking them instead of saying their initial value is `undefined`, makes
it easier to see if I accidentally introduce an uninitialized path.
@jyasskin jyasskin force-pushed the mark-always-initialized-fields branch from cce75de to 4ac26da Compare August 11, 2016 22:45
@jyasskin
Copy link
Member Author

I picked "always set in prose".

@g-ortuno
Copy link
Contributor

lgtm

@jyasskin jyasskin merged commit d3e9cfd into WebBluetoothCG:master Aug 12, 2016
@jyasskin jyasskin deleted the mark-always-initialized-fields branch August 12, 2016 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants