ancapdev / LightBSON.jl

High performance encoding and decoding of BSON data in Julia
MIT License
20 stars 4 forks source link

Support for more base types? #8

Open jw3126 opened 2 years ago

jw3126 commented 2 years ago

A bit similar to #7

obj = 1:10
LightBSON.bson_write(path, obj)
LightBSON.bson_read(typeof(obj),path)

throws an error:

KeyError: key :start not found

Should ranges and other common types from Base work out of the box? Or is this out of scope?

ancapdev commented 2 years ago

Ranges specifically may be encoded as arrays, but in general the scope is limited to BSON representable types.

jw3126 commented 2 years ago

Ok thanks, I now have a better picture of the score of this package!