substance / data

A uniform interface for domain data (deprecated)
http://code.substance.io/docs/substance-manual/
MIT License
655 stars 44 forks source link

rename "unique" to something like "string" or "single_value" #26

Open gr2m opened 13 years ago

gr2m commented 13 years ago

»unique« has a very strong meaning to a lot of people when it comes to databases. As far as I understand it, it's meaning at data.js is that the value is not unique, but that it's a flat value like a string and not something like an array or a hash, correct?

To avoid confusion, I strongly recommend renaming this attribute.

michael commented 13 years ago

Yeah, I'm aware of this. It's taken over from the Metaweb Object Model, also a number of other conventions (type prefixes etc.). Well unique doesn't belong to the data type, it just determines whether there can be one single value or many values on that property.

Mhh... we really need a meaningful name for this.

Yet I don't like:

list: true multivalued: true many: true singleValue: false

Gimme more! :)