I think it's abuse (putting the let on the first line makes it difficult to
see), but I see no reason why it should be forbidden, except in style
guidelines.  Indeed, there may even be situations where it's the preferred
idiom...

I do have a question, though:

Is "\\" implemented so that it would be possible to do this?

let
! \\ var1 $ bar x
! !  var2 $ quux x
! nitz var1 var2

If not, I still think it would be a good idea to extend the implementation
to be able to do this; it makes the block a little more compact, and a
little more readable.  I'd also expect that it wouldn't be too difficult to
implement.


On Thu, Aug 2, 2012 at 9:27 AM, David A. Wheeler <dwhee...@dwheeler.com>wrote:

> Alan Manuel Gloria:
> > So I've started coding, and I thought up of some (ab)use of SUBLIST:
> >
> > define foo(x) $ let
> > ! \\
> > !   var1 $ bar x
> > !   var2 $ quux x
> > ! nitz var1 var2
>
> First, just to clarify those who have trouble seeing the horizontal
> whitespace, this is the same as this:
>
> define foo(x) $ let
> ! \\
> ! ! var1 $ bar x
> ! ! var2 $ quux x
> ! nitz var1 var2
>
>
> I don't think that's an *abuse* at all.  I don't think I would format it
> that way, but I think that's exactly right and intended.  After all, we
> *expect* people to do this:
> let
> ! \\
> ! ! var1 $ bar x
> ! ! var2 $ quux x
> ! nitz var1 var2
>
> So prefixing "define foo(x) $ ..." should do just what you've written.
>  And "$" is *intended* help counter the endless march of indentation.
>
> --- David A. Wheeler
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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