Bug 45367
Summary: | Find a better word than optional for getters that can return null | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sam Weinig <sam> |
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, arv |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Sam Weinig
We should think up a better word than optional for getters that can return null (see Element::dataset and Element::optionalDataset). This word has been used in a few places, but we should do better. Some ideas from Maciej include:
nullableDataset? maybeDataset? datasetIfExists? datasetNoCreate?
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Erik Arvidsson
"nullable" and "maybe" were the first ones that came to my mind when reading the other bug.