Why forbid ! in whitespace-only line? Beni Cherniavsky-Paskin (02 May 2013 04:54 UTC)
Re: Why forbid ! in whitespace-only line? David A. Wheeler (02 May 2013 22:24 UTC)
Re: Why forbid ! in whitespace-only line? David Vanderson (03 May 2013 00:57 UTC)
Re: Why forbid ! in whitespace-only line? David A. Wheeler (04 May 2013 22:56 UTC)

Re: Why forbid ! in whitespace-only line? David Vanderson 03 May 2013 00:51 UTC

On 05/02/2013 06:24 PM, David A. Wheeler wrote:
> Beni Cherniavsky-Paskin <xxxxxx@users.sf.net> wrote:
>> define long-func(x)
>>    let ((foo bar(x)))
>>    ! do stuff
>>    ! ...
>>    !
>>    ! more stuff
>>    ! ...
>>
>> In any case, I didn't find this discussed in the rationale.
> But you're right, we could interpret lines with only "!", space, and tab as "ignored lines" instead (or ignored only if their indents match).  From a code point of view, it'd be trivial if lines with at least one "!", and ONLY "!", space, and tab, were treated as "ignore this line"... then we could reuse how it handles line-comment-only lines.
>
> Thoughts?  I think that would be an easy change.
>
> --- David A. Wheeler
I'm for it, but I'm not sure whether indentation matching should be
enforced:

define long-func(x)
   let outer ((foo bar(x)))
   ! let inner ((y z))
   ! ! do stuff
   ! ! ...
   !
   ! ! more stuff
   ! ! ...

In this case, is "more stuff" a child of "inner" or "outer"?  Even in
the first example, having a space after the ! on the blank line would
throw off the indentation, right?

I think I've convinced myself that indentation should NOT be enforced.
Anybody else?

Thanks,
Dave