Skip to content

[Proposal] mutability (and readme fixes) - #14

Open
Lcfvs wants to merge 1 commit into
mamund:masterfrom
Lcfvs:patch-1
Open

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

Conversation

@Lcfvs

@Lcfvs Lcfvs commented Jun 12, 2019

Copy link
Copy Markdown

Changes:

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

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

mamund commented Jun 14, 2019

Copy link
Copy Markdown
Owner

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

@Lcfvs

Lcfvs commented Jun 15, 2019

Copy link
Copy Markdown
Author

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

Lcfvs commented Jun 16, 2019

Copy link
Copy Markdown
Author

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

Lcfvs commented Jun 16, 2019

Copy link
Copy Markdown
Author

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

@Lcfvs

Lcfvs commented Jun 16, 2019

Copy link
Copy Markdown
Author

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

mamund commented Jun 21, 2019

Copy link
Copy Markdown
Owner

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

Lcfvs commented Jun 28, 2019

Copy link
Copy Markdown
Author

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