On 7/29/2013 11:33 AM, Kevin Smith wrote:
The value of uniqueness lies in the fact that you can design protocols without having to globally coordinate on property or method names. (E.g. iterator)

I think {keys, maps, values} (and the pivot to using Symbols and functions for them) demonstrates that a protocol is simply an agreed upon way of communicating; there's no requirement for uniqueness. Uniqueness has value in that it prevents accidental collisions. Symbols provide uniqueness because they are compared by identity, GUIDs provide uniqueness by having a value that is unlikely to be collided with.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to