IssueRaiser

> I hate that many other languages, including C#, Ruby and Python, force me to choose between either an unordered map or a list of (key, ...

> I hate that many other languages, including C#, Ruby and Python, force me to choose between either an unordered map or a list of (key, value) tuples Another commenter mentioned Python's OrderedDict, and Ruby's hashtables are ordered (from 1.9+): https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-... It looks like C# also has an OrderedDictionary class: http://msdn.microsoft.com/en-us/library/system.collections.s... I never had to use any of these classes even if I do use hashmaps all the time , so IMHO the Python way is best (default to a 'normal' unordered hashmap, offer an ordered alternative)

Posted by halflings on Dec 23, 2014, 11:09 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.9,000 issues0 comments

complaint (Other)

> I hate that many other languages, including C#, Ruby and Python, force me to choose between either an unordered map or a list of (key, ...

halflingsDec 23, 2014, 11:09 AM

> I hate that many other languages, including C#, Ruby and Python, force me to choose between either an unordered map or a list of (key, value) tuples Another commenter mentioned Python's OrderedDict, and Ruby's hashtables are ordered (from 1.9+): https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-... It looks like C# also has an OrderedDictionary class: http://msdn.microsoft.com/en-us/library/system.collections.s... I never had to use any of these classes even if I do use hashmaps all the time , so IMHO the Python way is best (default to a 'normal' unordered hashmap, offer an ordered alternative)

Comments (0)

No comments yet. Start the discussion.

Comment on this issue