lilypond-devel
[Top][All Lists]
Advanced

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

Re: Add lilypond version predicates/operators (issue 317270043 by addres


From: Urs Liska
Subject: Re: Add lilypond version predicates/operators (issue 317270043 by address@hidden)
Date: Tue, 14 Feb 2017 23:12:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

Hi Harm,


Am 14.02.2017 um 22:03 schrieb address@hidden:
> To throw in my own 2cts.
>
> Why not compare strings, looks more straight forward to me.
>
>

Indeed your code looks simpler, and your measurement indicates that the
computational cost is very similar.
However, David's last comment(s) made me think that this can be quite
useful beyond mere LilyPond version comparison, namely a generic
list-compare? or so. Although our handling of missing trailing elements
is pretty specific to *version* comparison.


I think I'll stick to the recursive list comparison and make it more
generic using David's suggestion.

Urs

>
>
> Cheers,
>   Harm
>
> https://codereview.appspot.com/317270043/
>
> _______________________________________________
> lilypond-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-devel

-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org




reply via email to

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