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

[Proposal] mutability (and readme fixes) #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lcfvs
Copy link

@Lcfvs Lcfvs commented Jun 12, 2019

Changes:

  • The proposal
  • A typo in the description
  • The values type

Changes:
 - The proposal
 - A typo in the description
 - The values type
@mamund
Copy link
Owner

mamund commented Jun 14, 2019

is there already a "read-only" property that does this?

@Lcfvs
Copy link
Author

Lcfvs commented Jun 15, 2019

Like a readonly, yes, but I don't found it in the spec/extensions.

And, imho, if I can, I prefer a single word (mutable, writable, ...) to avoid to enforce the case style.

@Lcfvs
Copy link
Author

Lcfvs commented Jun 16, 2019

I'm thinking again about the readonly VS mutable: do they really mean the same thing?

mutable meaning: restricted modification, once already set (e.g. a contract term, the contractors, ...)
readonly meaning: restricted modification (eventually internal modification only. e.g. an identifier, the timestamps, ...)

@Lcfvs
Copy link
Author

Lcfvs commented Jun 16, 2019

Additionaly, a mutable provides a way to what property needs to be retrieved until filled, reducing the collections sizes, throughout the exchanges.

@Lcfvs
Copy link
Author

Lcfvs commented Jun 16, 2019

A few like the HTML readonly, the user can't modify the value, but the server can.

{ readonly: false, mutable: true} // writable by everyone
{ readonly: true, mutable: true} // writable but not allowed to you
{ readonly: false, mutable: false }  // writable by everyone, once only
{ readonly: true, mutable: false }  // writable but not allowed to you, once only

@mamund
Copy link
Owner

mamund commented Jun 21, 2019

ok, let's do this:

head over to the collection-json org (https://github.com/collection-json/extensions) and let's start this as an official extension. there are minimal steps and it will make it easily availbale to everyone who wants to adopt it.

we can continue the discussion there.

@Lcfvs
Copy link
Author

Lcfvs commented Jun 28, 2019

Hi, just done ;)

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