Re: Support for timedelta (duration)

Zenaan Harkness <[email protected]> Fri, 4 Dec 2015 06:49:29 +0000
Newsgroups gmane.text.yaml.general
Message-ID <CAOsGNSSzEqUxmQFJJa7zrxnZm3NJccRyTSz1-so_qOLG5rr7nQ@mail.gmail.com>
On 12/3/15, Thomas Güttler <[email protected]> wrote:
> I would like to see timedelta support in yaml:

That's a higher level/ library type thing - YAML is lower level -
numbers, strings, maps and lists of these. The Java (and other
presumably) higher level libraries provide for serialization/
deserialization of "objects" or "classes" in your code - usually there
is a way to create a custom serialization mini format such as the time
delta you would like.

In principle, any new data type could have 'standardized' storage/
serialization format - complex numbers, matrices, all sorts of units
of measurement (not just time deltas) - YAML is designed to be enough
to represent any 'higher level' data type, without unnecessarily
burdening the YAML standard and therefore each implementation - better
that YAML be just simple enough to get the job done so it is easy to
implement, smallish, and relatively efficient.

Basically you are proposing a mini parser for a specific custom data
type. That's fine and good and perhaps your proposed implementation
will be useful to that community, but it's not something that would be
added to the YAML standard.

See for example:
http://yaml.org/spec/1.1/#id838638

I'm not up to speed more than that at the moment sorry,
Zenaan

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core