Re: Multi-Line Comments

Ingy dot Net <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
+1 Against multiline comments. Perl Python and Ruby don't have them.

I think in a serialization language like yaml they would be quite dangerous,
as you wouldn't know be looking at the middle of a stream, whether or not it
was a comment.

--Ingy

On Wed, Oct 14, 2009 at 5:03 AM, Oren Ben-Kiki <[email protected]> wrote:

> The current YAML spec does not have this feature. The title of 6.11 is
> misleading; it refers to the fact that multiple comment lines maybe included
> in what is logically a single white space separator between tokens.
>
> YAML 1.2 is finalized. Adding a /* ... */ style comment may be in scope for
> 1.3 or 2.0. There are pros and cons for adding it, and it isn't clear what
> syntax to use. At any rate, we have no concrete plans for working on a new
> version - ideally now the effort should focus on updating the
> implementations to match the 1.2 spec.
>
> FWIW, JSON doesn't allow for any comments whatsoever :-)
>
> In the meanwhile, most editors make it pretty painless to add a '#'
> character at the start of a range of lines.
>
> Have fun,
>
>     Oren Ben-Kiki
>
>
> On Wed, Oct 14, 2009 at 3:35 AM, <[email protected]> wrote:
>
>> Example 6.11 at http://www.yaml.org/spec/1.2/spec.html is about
>> multi-line comments.   I don't understand how the right-hand green box
>> relates to this.  It has no # comments.  I have a need to comment out
>> large blocks of lines (like C's /* ... */).   Is this possible in YAML,
>> and if not, could I suggest that it be added?
>>
>> Thanks,
>> Keith
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Yaml-core mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/yaml-core
>>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.