[Home] [By Thread] [By Date] [Recent Entries]
With all this discussion of types, is it still the main motivator behind using JSON or this XML-oriented variant of JSON that Javascript be able to parse the data natvively (or pretty much natively, perhaps with some pre- and/or post-processing)? If so then surely the assumption would be that types only go as far as JSON's handling of types (what with Javascript being weakly typed). If not then why bother with JSON if Javascript isn't the target? ---- Stephen D Green On 17 February 2011 15:06, Pete Cordell <petexmldev@c...> wrote: > Original Message From: "John Cowan" > >> Pete Cordell scripsit: >> >>> But is that level of semantics helpful to a computer? I'm not sure that >>> knowing that something is 32 the number, rather than "32" the string >>> would help me much with all the semantic inferencing I can do as a human. >>> I would have thought its even less useful to a computer! >> >> Au contraire, it tells you what object to store the value in, at least >> in statically typed languages. > > > My feeling is that when you work through the implementation of handling type > tagged values you'll still end up with a fairly generic kind of object and > you're not going to get floats mapped to language native float types etc. > For example, all the classes would likely have some common base class > interface and be created by some factory or other. > > Pete Cordell > Codalogic Ltd > Interface XML to C++ the easy way using C++ XML > data binding to convert XSD schemas to C++ classes. > Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com > for more info > > > > > _______________________________________________________________________ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: xml-dev-unsubscribe@l... > subscribe: xml-dev-subscribe@l... > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



