From: Clark C. E. <cc...@cl...> - 2004-09-15 02:51:48
|
On Tue, Sep 14, 2004 at 05:21:13PM -0400, trans. (T. Onoma) wrote: | So far these have been the suggestions: | | Abstract: Since NULL values seem to be invogue, here is another possibility: ? This particular value is so special it can never appear in a serialization! Let's call it #2a. | - ! Right. I like this one beacuse it is exactly the type you give when you want to make a quoted scalar be 'plain'. | - '' (empty string --if that's different from NULL ?) Definately not the empty string, in some languages (REXX?) there isn't a None type, everything is a string, and thus null is usually modeled with the empty string. In "C" land you probably want to use a global pointer to an empty string. | - tag:yaml.org,2002:str I think the regex example given in Tim's post is a great idea, further, I agree with Tim's suggestion that Oren's facination with only filling in NULL tags isn't all that pratical. On Tue, Sep 14, 2004 at 04:56:26PM -0700, Tim Hochberg wrote: | I think it's the !!quoted->!!str part that's going to make Oren go | beserk because that's changing a type instead of filling it in. That | seems like angels on pins to me. But if it helps any we can reshuffle | things and say that during implict typing only NULL tags are filled in, | but applications that do implicit typing should treat !!quoted as a | synonym for !!str. Only NULL tags get filled in. Everyone is happy. | Peace and love all around. I agree with your sentiment, only !!quoted would be a YAML type and I think _how_ that tag is treated is completely determined by the application, so it should properly either be a local tag or it should be a tag (like ?) that could never appear in a serialization to avoid the problem altogether. Cheers, Clark |