-
Notifications
You must be signed in to change notification settings - Fork 70
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
tagQuery()
: Rename$root()
to $allTags()
, $selected()
to $selectedTags()
; Print $selectedTags()
like a list()
#230
Conversation
* master: Provide better error message when adding unnamed attrib values (#229)
* master: Allow tag query `$*Class()` methods to no-op on length 0 inputs (#236)
$root()
now returns a visibleTagList()
and $selected()
also returns a visibleTagList()
$root()
now always returns atagList()
and $selected()
always returns a visibleTagList()
Why do we want to always return a |
Thought process was "anything in gives a tagList out. Then the same tagList in gives a tagList out." After one cycle, the input and output objects are stable. I'm ok putting it back to the flexible return type knowing that it is not stable as I would believe that few people will call |
I think that it's OK to return a variable type. If anything, I think always returning a Also, as I was looking at this PR and rstudio/shiny#3372, I think that name |
... so my gut reaction is not comfortable using |
Some possible names:
|
How about |
$root()
now always returns atagList()
and $selected()
always returns a visibleTagList()
$root()
now always returns atagList()
and $selected()
always returns a tagList()
that prints like a list
We should also have a version bump because of the new names. |
$root()
now always returns atagList()
and $selected()
always returns a tagList()
that prints like a listtagQuery()
: Rename$root()
to $allTags()
, $selected()
to $selectedTags()
; Print $selectedTags()
like a list()
LGTM 👍 |
* master: `tagQuery()`: Rename`$root()` to `$allTags()`, `$selected()` to `$selectedTags()`; Print `$selectedTags()` like a `list()` (#230) tagQuery(): Rebuild less often and do not check for tag env cycles; Rename `$reset()` -> `$resetSelected()` (#235) Bump rlang dev version Revert "Return invisibly when not creating a new tagQuery() object (#228)" Allow tag query `$*Class()` methods to no-op on length 0 inputs (#236)
tagList()
to display[[i]]
like a regular list?visibleTagList()