MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wbmurt/csharpdictionariesbelikethat/p8tsahk/
r/ProgrammerHumor • u/KTVX94 • Sep 09 '26
61 comments sorted by
View all comments
Show parent comment
2
that overwrites instead of failing if the key already exists
maybe they are arguing that they feel that TryAdd should be the default "Add", while the existing Add should be a special case "AddAssert" or something
3 u/prehensilemullet Sep 09 '26 Yes, I think that would be a more convenient design
3
Yes, I think that would be a more convenient design
View all comments
Show parent comment
2
u/-Redstoneboi- Sep 09 '26
that overwrites instead of failing if the key already exists
maybe they are arguing that they feel that TryAdd should be the default "Add", while the existing Add should be a special case "AddAssert" or something