[m-dev.] Commas considered optional

Simon Taylor stayl at cs.mu.OZ.AU
Fri Nov 30 01:32:29 AEDT 2001


On 30-Nov-2001, Peter Schachte <schachte at cs.mu.OZ.AU> wrote:
> Can someone explain what the benefit of making commas optional is?  Is it
> meant to make code easier to read?  Easier to type?  Easier to indent (since
> lines are shorter)?  There should really be a cost/benefit analysis.  I can
> see the costs, but I don't see the benefit.

The commas for conjunctions don't add readability (the syntactic
information they provide is already present in the layout of the
code), but they cause lots of pointless syntax errors when code
is rearranged.

Simon.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list