Skip to content

Conversation

@lionel-
Copy link
Member

@lionel- lionel- commented May 1, 2017

  • set_attrs() now fails with uncopyable objects
  • mut_attrs() can be used to explicitly change attributes with side effects
  • if called with unnamed NULL, zap attributes

Also, _len() and _along() ctors don't pass ... to set_attrs() anymore. It doesn't seem as readable as an explicit call to set_attrs().

@lionel- lionel- requested a review from hadley May 1, 2017 12:26
lionel- added 7 commits May 1, 2017 18:28
- Takes uncopyable objects
- set_attrs() is restricted to copyable objects
Doesn't seem as readable as explicitly calling set_attrs()
Since we now have better ways of creating empty vectors (e.g. dbl(),
chr(), etc)
@lionel- lionel- merged commit 460323e into r-lib:master May 1, 2017
@lionel- lionel- deleted the impl-set-attrs branch September 21, 2018 22:10
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.

2 participants