* Michael G Schwern <[EMAIL PROTECTED]> [2007-09-02 09:31]: > YAML has data types. > http://en.wikipedia.org/wiki/YAML#Data_Types > > Both implicit > > - 3 # integer > - "3" # string > - 123.0 # float > > And explicit > > - !!float 123 # float > - !!str 123 # string > > It can even do binary and user defined data types.
Good. That issue is cleared up then. * Ovid <[EMAIL PROTECTED]> [2007-09-01 21:17]: > Can I really keep a straight face and tell a C programmer that > the "Test Anything Protocol" deliberately chose a serialization > language that ignores data types? Well, you’re not writing an emitter for C, are you? It’s important to be sure that the serialisation format supports types for other languages, but we don’t have to use that support in the Perl TAP emitter, because those distinctions are without a difference in Perl anyway. * demerphq <[EMAIL PROTECTED]> [2007-09-01 23:51]: > On 9/1/07, Ovid <[EMAIL PROTECTED]> wrote: > > Workarounds for this issue are listed, but that still puts us > > in the position of needing a pure-perl, core method of > > disambiguating integers, floats, and strings. > > No. I thought I already said this, but apparently not. > > There Is No Difference. Not for Perl, but there is for other languages. Insofar I understand Ovid’s concern, and I agree with him that it’s important to keep in mind. Luckily, as Michael writes, YAML has what we want, so we’re done. And I agree that for Perl we don’t need to care, nor should we. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>