Open GoogleCodeExporter opened 8 years ago
I've pondered this a bit too. I like your __bsontype alternative. I also
proposed a similar solution for Arrays, which right now are implicitly created.
I thought about three different forms for the __bsontype approach:
mongo.Ordered{ {key1 = value1}, {key2 = value2} }
mongo.Ordered( key1, value1, key2, value2 ) -- error if there are odd # of
arguments
mongo.Ordered( {key1 = value1, key2 = value2}, {key1, key2} ) -- second table
is order of keys
Original comment by neoman...@gmail.com
on 9 Nov 2010 at 1:51
I think I'd prefer option 1 for the API, where values can be arbitrary types
again, so also complex __bsontype tables.
Original comment by niemueller
on 12 Nov 2010 at 5:09
Original issue reported on code.google.com by
niemueller
on 5 Nov 2010 at 3:39