blaze / datashape

Language defining a data description protocol
BSD 2-Clause "Simplified" License
183 stars 65 forks source link

Record types add quotes around names with spaces #103

Closed mrocklin closed 10 years ago

mrocklin commented 10 years ago

Before

In [1]: import datashape

In [2]: datashape.dshape('{"column name": int32}')
Out[2]: dshape("{ column name : int32 }")

After

In [1]: import datashape

In [2]: datashape.dshape('{"column name": int32}')
Out[2]: dshape("{ 'column name' : int32 }")
mrocklin commented 10 years ago

How should we use single vs double quotes in datashape? Should we prefer double quotes inside strings?

mrocklin commented 10 years ago

(for cross language compatibility)

mwiebe commented 10 years ago

Strings in datashape are defined to work the same as in Python. Datashape is its own language, I don't think there is a cross-language compatibility issue here.

mrocklin commented 10 years ago

Fixed in #104