From: Clark C. E. <cc...@cl...> - 2004-09-13 06:44:08
|
On Mon, Sep 13, 2004 at 02:22:21AM -0400, trans. (T. Onoma) wrote: | - There _are_ two types of commonly used scalars: | the literal-character based string-scalar and the | implicit, content-evaluated symbolic-scalar. | | !str and !sym On Mon, Sep 13, 2004 at 02:33:43AM -0400, Clark C. Evans wrote: | So, in this case, we are back with essentially working out _how_ we | are going to report this difference. The previous two options are: | | - We report four ?tags to the application, ?mapping, ?sequence, | ?scalar-plain, ?scalar-other. I meant ?map ?seq ?str and ?var, sorry. ?var is exactly ?sym | - We report three NULL tags to the application for the untagged | mapping, sequence, and non-plain scalar. The plain scalar | is reported using the ! tag. Or, ! is !sym, as a private type. | The primary advantage of the latter one is that you can choose to | only use double-quoted strings (necessary for my canonical form use | case), since these two are equivalent: | | - 23 | - ! "23" | | So, in effect, a plain scalar becomes syntax-short-hand | for using a ! private type. Best, Clark |