lilypond-devel
[Top][All Lists]
Advanced

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

Re: Renaming `ly:wide-char->utf-8`


From: David Kastrup
Subject: Re: Renaming `ly:wide-char->utf-8`
Date: Thu, 10 Feb 2022 13:37:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Abou Samra <jean@abou-samra.fr> writes:

> Le 10/02/2022 à 08:26, Werner LEMBERG a écrit :
>>>> Given that LilyPond uses Unicode exclusively I wonder whether we
>>>> should rename
>>>>
>>>>     ly:wide-char->utf-8
>>>>
>>>> to
>>>>
>>>>     ly:unicode->utf-8
>>>>
>>>> or something similar.  'Wide character' is too broad a term IMHO, and
>>>> the function doesn't do any character set conversions.
>>> We are more or less close to transitioning to Guile 2 exclusively
>>> which is going to obviate it anyway.
>> Obviate what?  Will the name of this function change automatically?
>
>
> No :-) But we will be able to spell (ly:wide-char->utf-8 1234) as
> either (integer->char 1234)

Wrong since a char is not a string.

> or (for literals which is the majority of cases) #\x4d2 (where 4d2 is
> the hex representation for the number that has the decimal
> representation 1234).

Again, a char is not a string.  ly:wide-char->utf-8 generates a string.

-- 
David Kastrup



reply via email to

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