lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openlilylib] Discuss restructuring


From: Paul Morris
Subject: Re: [openlilylib] Discuss restructuring
Date: Fri, 4 Jul 2014 20:30:25 -0700 (PDT)

Uns Liska wrote
> I can see the point and I'm ready to accept that approach. There is one 
> issue, however, that I'd like to discuss before making any decision.
> 
>      \include "file-name.ily"
> 
> opens the door wide for name conflicts. The more the names are speaking 
> the more they will be likely to exist in other places too. Particularly 
> as much of the stuff we have (and will have) is of quite similar 
> characteristic as all the other files inside LilyPond which can be 
> included directly.
> 
> So I would suggest inserting a kind of namespace through the following:
> 
> - don't name the root directory "library" but "oll"
>    This is a good "prefix" as it is characteristic _and_ short
> - let the user add the actual root directory instead of the "oll"
>    subdirectory to the include path
> - let the files be included with
>    \include "oll/file-name.ily"

Good point, and I think that's a good solution to it as well.  The only
drawback I see is that adding the root directory means you lose some of the
separation between the files that are to be included and those that are not. 
Do you think it would be worth doing something like this to keep it?

  root/library/oll/filename.ily

Users would add the library directory (limits access to just includable
files), and it only contains the oll directory (provides namespace).  

Just an idea, not sure if the extra directory is worth it or not.

The rest of what you wrote all sounds fine to me.

Cheers,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/openlilylib-Discuss-restructuring-tp163922p163999.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]