From: Clark C . E. <cc...@cl...> - 2001-11-29 16:52:01
|
> | > I really don't see a need for implicits beyond > | > string, int and real. Use the long form otherwise. > | > | I think allowing for dates, IP addresses, and > | other *scalar* types is very useful. > | > | I agree with you that ^<alpha> should be an implicit !str regexp. I'd like !date and !time at the minimum, !currency would also be a nice implicit. I these three scalar types are found more often in my data than floats. They are "core" data types to me. > Well, if time, ip and currency *were* implicits then > we could just do: > > lunch: 14:30 > ip: 192.168.2.1 > price: $10.5 > > I don't see what this argument has to do with > Inline Collections Correct. This doesn't have anything to do with inline collections. However, it is a slight indicator/production complexity which must be managed carefully. When time 10:30 is used as a key, it must be escaped. So, if we want it to be unquoted as a value, we need yet-another scalar type... (7 of them), this seventh is the "implicit-key". That said, I think we need the implicit-key anyway to restrict the keys from containing new lines. Best, Clark |