Link Details

Link 95941 thumbnail
User 281687 avatar

By paul_houle
via gen5.info
Published: Jul 17 2008 / 14:54

Today's popular programming languages support some form of Dictionary that maps a set of keys to values. On close inspection, we find that common languages offer programmers different options for dealing with missing values. This article looks at the handling of missing keys in four popular languages and presents a PHP function and C# extension method that implement a particularly useful get() operator.
  • 14
  • 0
  • 1423
  • 278

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.