daniel added a comment.

@adrianheine If you want to set a sitelink, the setter should return a new 
Item? That sounds rather awkward and inefficient.

We could re-design the data model to be immutable. It would mean rewriting a 
lot of code. I don't see that happening.

Generally: Manipulating complex data structures efficiently in a purely 
functional style means using "zippers" of some kind, which as far as I 
understand need good reference handling, and good memoization. Both would be a 
pain to do in PHP.


TASK DETAIL
  https://phabricator.wikimedia.org/T126152

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: adrianheine, daniel, JeroenDeDauw, thiemowmde, Aklapper, Bene, 
StudiesWorld, Izno, Luke081515, Wikidata-bugs, aude, Mbch331



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

Reply via email to