[mercury-users] Re: Preferred coding style for switches

Robert Ernst Johann JESCHOFNIK rejj at cat.cs.mu.OZ.AU
Fri Dec 17 02:55:40 AEDT 1999


On Fri, 17 Dec 1999, Fergus Henderson wrote:

> I think the use of 8-character tabs for indentation is probably
> not a good idea.  It makes sense in Prolog, where you tend to
> have little indentation, because Prolog forces you to use
> a separate predicate for every switch (since in general you only
> get indexing on the top-level functor of the first argument).
> But for Mercury I think using four spaces per level of indentation
> would be a better idea.

The mercury-mode I have for Emacs does this. It is actually just a
Prolog-mode that has mercury support.
.. and I concur, 8 character tabs does seem a bit (!) much. I wouldn't say
no to 2 character tabbing, either.


Rob
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list