logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Fwd: Style issues [was: should we import...]: msg#00277

Subject: Fwd: Style issues [was: should we import...]
Oops, reply to list.

---------- Forwarded message ----------
From: Taral <taralx@xxxxxxxxx>
Date: May 24, 2005 5:04 PM
Subject: Re: [darcs-devel] Style issues [was: should we import...]
To: Juliusz Chroboczek <Juliusz.Chroboczek@xxxxxxxxxxxxxx>


On 5/24/05, Juliusz Chroboczek <Juliusz.Chroboczek@xxxxxxxxxxxxxx> wrote:
> I agree.  Another point is that importing whole modules tends to cause
> shadowing of symbols, which David's fascist makefiles forbid (-Wall -Werror).

We could use syntax:

import Foo (
    symbol1,
    symbol2,
)

> While we're on the subject of style, there is one thing that's
> enforced by the current makefiles that I find annoying: the fact that
> I cannot name unused parameters in functions.  For example, I cannot
> write something like
>
>   foo x [y] = x + y
>   foo x list = x

foo x _list = x

--
JP Sugarbroad <taralx@xxxxxxxxx>


<Prev in Thread] Current Thread [Next in Thread>