Am 26.08.2013 18:58, schrieb Jeroen De Dauw:
Hey,

This could be solved using polymorphism: CommonsMedia, IRI, etc could
simply derive from StringValue. Similarly, Percentage could derive from
NumberValue, etc.

That violates Liskov Substitution [0] ;)

Not if the value objects are immutable, as they should be. Or am I missing something?

-- daniel


_______________________________________________
Wikidata-tech mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to