-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
TaskListItem: "undefined" ? #55
Comments
Yes, I think a boolean "checked" (true|false) would make sense here. I'm not sure any more whether there was a reason for doing it that way. Maybe we were preserving the possibility of other values, e.g. "?", or different types of checks?? @matklad any thoughts? |
Checkboxes can have three different states. For example, with a list of nested checkboxes, there's often "some, but not all, child itmes are checked". As another case study, org mode seems to allow these three: I'd say: If we only allow two states syntactically, Status quo, with two states and an enum, doesn't make much sense to me. No informed opinion on whether we should have two-state or three-state checkboxes, deferring to jgm's taste here, but I maybe lean towards allowing three cases, org-style. Seems easy to support for us, and, if we don't do this, it would be hard to work-around for the user. |
org mode doccs: https://orgmode.org/manual/Checkboxes.html |
This has a lot to do with how we want to ... and after thinking more about it i am
Fuzzy logic
Atul Gawande His 'Checklist for Checklists' For him a check is an action that has to be done... Both interpretations sound good to me - i would But the underlying concept is different and What should we do? The boolean solution? |
A checkbox on an old-fashioned piece of paper has two states, usually: checked or not checked. There isn't any difference between "I didn't think about it" and "I thought about it and decided not to check it." That's the mental model I have. (Same is true of checkboxes in HTML.) |
Sounds logical. A 'task' gets done or not (boolean). And the 'answer to a binary question' |
Right now the checkbox value of TaskListItem
can be "checked" or "unchecked".
Wouldn't it be nice to have a value for the case
when this checking still has to be done?
("undefined")
(otherwise why not switch to a boolean value:
"checked": true|false ? )
The text was updated successfully, but these errors were encountered: