jrtom: (Default)
[personal profile] jrtom
If I want to know if a given key is in a Dictionary, I'll do a Contains check myself.

In particular, I do not want you to throw an exception if I either

(a) attempt to retrieve a value for a key not in the dictionary, or
(b) attempt to set a value for a key in the dictionary.

Seriously. Not everything that might possibly be an error needs to result in throwing an exception (and had it occurred to you that I might want to _replace_ a value in the dictionary without the extra overhead of a call to Remove()?). Sheesh.

Your Somewhat Reluctant Disciple,

[livejournal.com profile] jrtom

PS: And get a decent collections API already, for [INSERT DEITY HERE]'s sake. Power Collections is a place to start, but by no means a place to finish...and it does not make up for many existing inadequacies.

Profile

jrtom: (Default)
jrtom

May 2011

S M T W T F S
1234567
891011121314
1516 1718192021
22232425262728
29 3031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 7 July 2025 07:59
Powered by Dreamwidth Studios