On 2016/12/03 11:33:15, dak wrote:
David Kastrup <mailto:d...@gnu.org> writes:

> As a user interface, that sounds very much desirable.  I don't like
> converting symbols to strings, putting stuff on them, and converting
> them back again.
>
> But it's probably the lesser evil.

Actually, use an alist or a hash internally for mapping
tremolo,volta,whatever to a music type even though it looks like
string
manipulation might do the trick.

That way you can also get #f and put out an error instead of creating
an
illegal music type.

And the result is again reasonably efficient.

--
David Kastrup

Done.
Now a hash-table is used.
I don't think an error is needed, a warning should be sufficient.


https://codereview.appspot.com/318890043/

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to