On 7/28/12, David A. Wheeler <dwhee...@dwheeler.com> wrote:
> I said:
>> HOWEVER.  I'm wondering if we have the wrong semantics on the "only one
>> datum on the right-hand-side" SUBLIST case.  In particular, in the current
>> semantic:
>>   a $ b
>> means (a b), not (a (b)).
>
> Ah, I think I found a better way to describe SUBLIST that I think makes it
> clearer:
> "A $ (aka SUBLIST) in the middle of list restarts list processing; the
> right-hand-side (including its sub-blocks) is the last parameter of the
> left-hand side."
>
> So this means that the two are equivalent:
>   run $ cat(README)
> and
>   run $ cat README
>
> And *THAT* is a good justification for why "a $ b" means the same as "a b".
>
> So I think I've answered my own question, there's a good reason that "a $ b"
> means "(a b)" and that we should keep things as they are.

Another one is that "$" is meant to be used to "compress" vertically
any deeply-indented code that happens to be just monotonically
indenting more.

So:

foo
! bar
! ! nitz
! ! ! quux meow

is the same as:

foo $ bar
! nitz
! ! quux meow

is the same as:

foo $ bar $ nitz
! quux meow

And is the same as:

foo $ bar $ nitz $ quux meow

And then there's the form:

foo
! bar

is the same as:

foo $ bar

is the same as:

(foo bar)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to