[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fret diagram comments
From: |
Han-Wen Nienhuys |
Subject: |
Re: fret diagram comments |
Date: |
Sun, 22 Jun 2008 13:31:27 +0200 |
On Sun, Jun 22, 2008 at 5:07 AM, Carl D. Sorensen <address@hidden> wrote:
> I will be happy to clean up the formatting. I can see that the code lines
> are too long,
> which give lots of random wraps and hides the structure.
>
> I intend to reformat the code, by using two-space indents where there are not
> parallel
> constructs, and with aligned parentheses where there are parallel constructs.
> This is
> similar to the pretty-print output.
>
> Of course, when I do this, the diff will be twice as large as the file. Are
> you OK with that?
Sure, but it is good practice to not mix the formatting cleanups and
functional cleanups in the same code.
> I reviewed the LilyPond coding standards, which pointed me to the GNU coding
> standards.
> The indentation standards there were for C indentation, not for Guile
> indentation.
> I could not find any standards for Guile indentation, which is why I plan to
> imitate the
> pretty-print output as best I can, unless you have other standards to which
> you can
> point me.
I let emacs indent my lisp/scheme code. I suppose the elisp manual
has some hints too.
>> > - for the properties inside the fret0-diagram-details,
>> would it make
>> > sense to drop the fret- prefix?
>>
>> I suppose we could. I guess I put the fret- prefix in to
>> make it clear it was in a different name.
>
> After further review of the code, I think we need to keep the fret- prefix on
> all
> the names that have them. In a fret diagram there are frets and strings. The
> fret- prefix serves to identify things associated with frets, as opposed to
> strings.
ok.
> I've reverted the bad commits, and saved a properly working file. When I have
> fret-diagrams.scm cleaned up, I'll do a new commit on csorensen/master. You
> should then be able to either cherry-pick or pull to get it right, I think.
sure. Feel free to start a new branch if necessary.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
RE: fret diagram comments, Carl D. Sorensen, 2008/06/24