Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-06 Thread Beni Cherniavsky-Paskin
On Mon, Aug 6, 2012 at 7:19 PM, Alpheus Madsen wrote: > To the best of my knowledge, Common Lisp does not have multi-line > comments, so I don't think this is going to be an issue for Common Lisp. > It does, and they nest: http://www.lispworks.com/documentation/HyperSpec/Body/02_dhs.htm -- Beni

Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-06 Thread Alpheus Madsen
> I think comments should nest iff they nest in that language *without* our readers. That is, if #|...|# nests in the underlying language, then it should in our reader. If it doesn't, it shouldn't. Remember, we're trying to maximize backwards compatibility, so we shouldn't change the semantics of

Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-02 Thread David A. Wheeler
Alan Manuel Gloria: > The comments themselves remove text in the following manner: > > #|.. #|...|#...|# nests > > #!..!# doesn't nest, as per Guile behavior I think that's perfect. As much as possible we should be backwards-compatible, and this fits the bill. > #; x y z removes the x (only c

Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-02 Thread Alan Manuel Gloria
The comments themselves remove text in the following manner: #|.. #|...|#...|# nests #!..!# doesn't nest, as per Guile behavior #; x y z removes the x (only c-expressions/n-expressions are removed). Sorry, but it gets *really* difficult to make this work at the t-expression level - you need som

Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-02 Thread David A. Wheeler
Alpheus Madsen: > As a general rule, I expect "multi-line" comments to be comments that just > disappear when compiled. Agree. > Oh, and this will likely make the implementation of comments more > complicated, but would it be possible to make these comments "nested"? It > has always bugged m

Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-02 Thread Alpheus Madsen
As a general rule, I expect "multi-line" comments to be comments that just disappear when compiled. Oh, and this will likely make the implementation of comments more complicated, but would it be possible to make these comments "nested"? It has always bugged me, where multi-line comments are allow

Re: [Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-02 Thread David A. Wheeler
Alan Manuel Gloria > Before, when planning out multiline comments, I thought that: > > #|comment|# foo bar > > would be equivalent to: > > \\ foo bar ... > However, when I implemented it, I completely forgot to consider the > following case: > > foo #|comment|# bar > > The current implementati

[Readable-discuss] Bug (or feature??): multiline comment acts as SPLIT

2012-08-02 Thread Alan Manuel Gloria
Before, when planning out multiline comments, I thought that: #|comment|# foo bar would be equivalent to: \\ foo bar would be equivalent to: foo bar or (foo bar) However, when I implemented it, I completely forgot to consider the following case: foo #|comment|# bar The current implementat