John,

On Sun, 2010-07-11 at 13:59 -0400, John Murph wrote:
> I don't know if it's intentional, but I like the task ('flob') syntax
> better, in large part because it allows for different curly brace
> placement.
> 
> task flob (...) {

> works, but 
> 
> task flob (...)
> {

> doesn't work.  However,
> 
I hadn't twigged to that feature of things.  Presumably this is a
consequence of using an AST transform?  I have to admit I am not a great
fan of exceptions to grammars such as this.  Either you should always
have to have the { in a given place or there should always be freedom to
format as you want.

> task ('flob') {

> and
> 
> task ('flob')
> {

> both work.

I used to prefer this way, but now prefer the earlier form, but perhaps
I am just being indecisive -- I can't really decide :-)
> 
> I would like the user's guide to show both usages if only for that
> reason.
> 
I think it would be a very bad idea for the user guide to use one form
exclusively where there are other ways and choices.  Consistency of
presentation is best when consistent.  So for me making all the examples
consistent is a good idea but adding a new section describing the
alternatives would be my choice of way of dealing with this.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to