Why not Ruby?

Fuzzyman fuzzyman at gmail.com
Thu Jan 1 22:13:19 CET 2009

On Jan 1, 8:32 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> > Of course pythons list, dict, strings in my opinion just can't be beat,
> On many occasions I've wished for a functional dictionary
> implementation in Python, like Haskell's Data.Map.  One of these years
> I'll get around to writing one.

Care to save me the effort of looking it up and tell me what Data.Map
does that Python's dict doesn't?

I guess if it is functional then every mutation must copy and return a
new data structure? (Which will be much more efficient in Haskell than
in Python - Haskell can share most of the underlying data whereas
Python would have to create a new dict every time. At least it only
stores references.)

Michael Foord

More information about the Python-list mailing list