Missing Keys in Dictionaries: Semantics of C#, Java, PHP and Python(gen5.info)

submitted by paul_houlepaul_houle(435) 3 years, 10 months ago

Today's popular languages implement Dictionaries: a structure that can efficiently look up values associated with a set of keys. On close examination, we find that different implementations provide programmers different options for missing keys: something that can make a big difference for the reliability and maintainability of applications. This article contrasts the implementation of Dictionaries in C#, PHP, Python and Java and provides implementations of Python-style semantics as a PHP function and C# extension method

1 comment |category: |Views: 8

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:
information Login or create an account to comment on this story