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

Remove 'attributes' #21

Closed
jkeiser opened this issue Sep 9, 2014 · 7 comments
Closed

Remove 'attributes' #21

jkeiser opened this issue Sep 9, 2014 · 7 comments

Comments

@jkeiser
Copy link
Contributor

jkeiser commented Sep 9, 2014

It's a little bit confusing that

attribute 'x', 'y'

does not modify other attributes,

but attributes 'x' => 'y'

removes all other attributes.

@jkeiser jkeiser added this to the 1.0 milestone Sep 9, 2014
@johnewart
Copy link
Contributor

Why remove it? What about making it a plural of attribute which I think people would expect?

@jkeiser
Copy link
Contributor Author

jkeiser commented Sep 10, 2014

If attributes 'x' => 'y' is going to become exactly the same as attribute 'x', 'y' then I just don't see too many reasons to have both.

@johnewart
Copy link
Contributor

What about attributes {'x' => 'y', 'q' => 'p', 'name' => 'samwise'}

@jkeiser
Copy link
Contributor Author

jkeiser commented Sep 10, 2014

Yep, that's the same as attributes 'a' => 'b', 'c' => 'd'. If the only difference between these is the plurality, then we should just let people write "I want one attribute" as attributes 'a' => 'b'.

I am flipping my feeling now to removing "attribute" instead, fyi :)

@johnewart
Copy link
Contributor

I would agree - and if you want the old effect of attributes being authoritative you could just use complete

@jkeiser jkeiser modified the milestones: Later, 1.0 Feb 26, 2015
@lamont-granquist lamont-granquist removed this from the Later milestone Dec 7, 2016
@lamont-granquist
Copy link
Contributor

It definitely feels more declarative to have an attributes property that fully specifies the attributes Mash, so the title of this feels certainly wrong.

@lamont-granquist
Copy link
Contributor

IDK about removing attribute either, closing this, presumably its not super important given how stale of an issue it is.

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

No branches or pull requests

3 participants