[m-dev.] Commas considered optional

Michael Day mikeday at bigpond.net.au
Thu Nov 29 17:12:53 AEDT 2001


> This proposal might be desirable for conjunctions where you
> typically use a newline between conjuncts so the removal of the comma
> wouldn't make a huge difference to the ``visual parsing'' of the program.
> However, in the example you give above, eliminating the commas between
> arguments makes the code harder to read, IMHO.  It is quite hard to
> tell where one argument ends and the next one starts and also makes it
> hard to quickly ascertain the arity of f.

So... make commas optional? Seems to satisfy both cases. And and and...  
they wouldn't be necessary in typeclass definitions?? That would be an
enormous improvement :)

(What about current code that overloads ','/2, would that be equivalent to 
overloading juxtaposition too?)

Michael

--------------------------------------------------------------------------
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