In the mongodb package, an array is not represented by a vector. An array is any sequence of bson values. The decoder will only produce vectors, but the encoder will accept any sequence. I think a vector is clearly superior since it corresponds more to the fixed-sized, indexed array described by the BSON format.
Jay On Wed, Dec 19, 2012 at 10:50 PM, Haiwei Zhou <highfl...@gmail.com> wrote: > Hi, > > In the library json, array is represented as list. But in the mongodb.plt, > array is represented as vector. The bson is almost the same as json in > concepts. If we can make json compatible, it's easy to translate json to > bson and vice versa. > > I would like to submit patch that makes both list and vector works in the > json library and mongodb.plt. > > Regards, > Haiwei > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > -- Jay McCarthy <j...@cs.byu.edu> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93 ____________________ Racket Users list: http://lists.racket-lang.org/users