From: Clark C . E. <cc...@cl...> - 2001-08-03 19:43:54
|
On Fri, Aug 03, 2001 at 03:34:55AM -0700, Brian Ingerson wrote: | > | integer : 42 | > | string : "42" | > | real : -12.34 | > | string : "-12.34" | > | > This is a tough one, in essence I think you have a short-hand | > for indicating that a scalar node has one of three types: | > | > - Integer | > - Float | > - String | > | > This definately adds type/class to the information model... | | No. It just adds string, int, float to the info model. They are native | in almost all YAML languages. And they must have a short-hand syntax to | be usable. Also, just to note, the Float type should us the IEEE MeE regular expression. Why? 3.4 could just as well be BCD or Rational. Indeed many mainframe languages treat 3.4 and 3.4e0 as completey different animals. The first is exact the latter is not; this is especially important when dealing with Currency. Best, Clark |