Author: br...@google.com
Date: Mon Jun 22 23:40:46 2009
New Revision: 5604

Modified:
    wiki/LightweightCollections.wiki

Log:


Modified: wiki/LightweightCollections.wiki
==============================================================================
--- wiki/LightweightCollections.wiki    (original)
+++ wiki/LightweightCollections.wiki    Mon Jun 22 23:40:46 2009
@@ -44,6 +44,4 @@

  _Publish and guarantee time complexity for various operations._

-_Keep implementations locked down._ Because it's very tricky to get the  
implementations for these sorts of collections just right, the plan is to  
minimize ways in which there could be confusion about the implementation of  
a given collection type. More concretely, the key types should be classes  
rather than interfaces so that their implementation can be restricted to  
the package in which they are defined. If developers cannot trust that a  
given collection instance is truly optimal and maintains time complexity  
guarantees -- as might be the case if collections types were interfaces  
which could have been implemented "anywhere" -- then they may feel  
compelled to write defensive code. By locking the implementations down,  
developers can rely on the behavior of a given collection type.
-
-
+_Keep implementations locked down._ Because it's very tricky to get the  
implementations for these sorts of collections just right, the plan is to  
minimize ways in which there could be confusion about the implementation of  
a given collection type. More concretely, the key types should be classes  
rather than interfaces so that their implementation can be restricted to  
the package in which they are defined. If developers cannot trust that a  
given collection instance is truly optimal and maintains time complexity  
guarantees -- as might be the case if collections types were interfaces  
which could have been implemented "anywhere" -- then they may feel  
compelled to write defensive code. By locking the implementations down,  
developers can rely on the behavior of a given collection type.
\ No newline at end of file

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to