Dear List,

I was wondering whether I am the only one shocked when I see this:

        (Set new add: #b -> 'B'; yourself) includes: #b -> 'B' ====> true
        (Set new add: #b -> 'B'; yourself) includes: 'B'  ====> false

        (Dictionary new add: #b -> 'B'; yourself) includes: #b -> 'B' ====>  
false
        (Dictionary new add: #b -> 'B'; yourself) includes: 'B'  ====> true

Dictionary inherits from Set. This means that if Set would have a  
contract, it would break in Dictionary.
IMO,  we should have
        (Dictionary new add: #b -> 'B'; yourself) includes: #b -> 'B' ====>  
true
        (Dictionary new add: #b -> 'B'; yourself) includes: 'B'  ====> false

No?

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to