[erlang-questions] Special syntax for dictionaries

Anthony Shipman als@REDACTED
Tue May 4 12:54:09 CEST 2010


On Tue, 4 May 2010 05:57:19 am Sergey Samokhin wrote:
> Hello!
>
> While reading turorials of how MongoDB documents are made in
> Python/Ruby, I saw one thing I ever wanted to have in Erlang:
>
> {"author": "Mike",
> "text": "My first blog post!",
> "tags": ["mongodb", "python", "pymongo"],
> "date": datetime.datetime.utcnow()}
>
> That is special syntax for dictionaries.

This is not far off it

dict:from_list([
	{"author",	"Mike"},
	{"tags",	["mongodb", "python", "pymongo"]}
	])

-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.


More information about the erlang-questions mailing list