Ok, I get your point, though in this case I think a simple (and inoffensive)
where clause will improve readability. A short comment will do the job too.

I know when I do some of these commentaries I could be considered too
"picky", so let me know if you [don't] want to receive this sort of comments
about Darcs code.

On Sun, Nov 14, 2010 at 3:10 PM, Ganesh Sittampalam <[email protected]> wrote:

> On Sun, 14 Nov 2010, Iago Abal wrote:
>
>  I think movedirfilename will be more readable if the bold code is replaced
>> by "name" `isSuperdir` "old". Since some normalization is performed I
>> don't
>> know if the use of isSuperdir :: FileName -> FileName -> Bool is the best
>> choice, but anyway, I think a where clause "where isSuperdir = ..." will
>> be
>> very appreciated when reading movedirfilename.
>>
>
> I'm sure such changes would be an improvement, but similar to our
> discussion on IRC last night, I think this is the kind of low-level commute
> code that hasn't been touched in a long time except to move it around and
> that we would need to be very careful before we do start changing it.
>
> Perhaps the right time to change it would be once we've got a test suite
> that we're happy has very good coverage, or when we make a new patch type
> anyway.
>
> Cheers,
>
> Ganesh
>



-- 
Iago Abal Rivas
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to