Skip to content

[Proposal] mutability (and readme fixes)#14

Open
Lcfvs wants to merge 1 commit intomamund:masterfrom
Lcfvs:patch-1
Open

[Proposal] mutability (and readme fixes)#14
Lcfvs wants to merge 1 commit intomamund:masterfrom
Lcfvs:patch-1

Conversation

@Lcfvs
Copy link
Copy Markdown

@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
Copy Markdown
Owner

mamund commented Jun 14, 2019

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

@Lcfvs
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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