If you specify exactly how much precision it needs to have, at least
it's easy to come up with a test suite. If it's defined to have
infinite precision, it's anyone's guess if your implementation will
be interoperable...
Infinite precision also makes it difficult to work with in languages
that don't have that concept. For example, if I were writing a C
implementation, I would probably punt and use int64_t instead of
going all out and linking to GMP.
On Feb 13, 2006, at 4:49 PM, Dr. Ernie Prabhakar wrote:
Excellent comments -- I agree with most of them. For those who
don't know, the easiest way to see them is via history:
http://microformats.org/wiki?title=rest%2Fdatatypes&diff=0&oldid=4945
I'll wait to see if anyone else has a different perspective before
integrating Kevin's comments.
The one area I'm most unsure about is "int" -- is there any harm in
just calling this "any integer" rather than restricting it to
"int32"? How would the failure/parsing modes differ?
-- Ernie P.
On Feb 13, 2006, at 4:40 PM, Kevin Marks wrote:
Comments added to the page
On Feb 13, 2006, at 4:12 PM, Dr. Ernie Prabhakar wrote:
Doh -- my apologies for the lack of plaintext. Here it is again
-- Ernie P.
On Feb 13, 2006, at 4:10 PM, Dr. Ernie Prabhakar wrote:
Hi all,
Since nobody seemed to have anything new to add, I've finished up
the proposal for how to add datatypes to XOXO:
http://microformats.org/wiki/rest/datatypes
As you may recall, the proposal is to use XML-RPC datatypes with
a few caveats (e.g., not ".iso8601"). Here's an example:
<dl class="typed xoxo">
<dt>key</dt><dd class="string">value</dd>
<dt>integer</dt><dd class="int">137</dd>
<dt>real</dt><dd class="double">3.14159265</dd>
<dt>date</dt><dd class="dateTime">1994-11-05T13:15:30Z</dd>
<dt>date(abbr)</dt><dd class="dateTime"><abbr
title="1994-11-05">November 5, 1994</abbr></dd>
<dt>true</dt><dd class="boolean">1</dd>
<dt>false</dt><dd class="boolean">0</dd>
<dt>data</dt><dd class="base64"><a
href="data:;base64,sdcfo2JTiXE=" type="image/jpg">my image</a></dd>
</dl>
As always, let me know what you think. Thanks!
-- Ernie P.
_______________________________________________
microformats-rest mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-rest
_______________________________________________
microformats-rest mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-rest
_______________________________________________
microformats-rest mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-rest
_______________________________________________
microformats-rest mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-rest
_______________________________________________
microformats-rest mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-rest