guile-user
[Top][All Lists]
Advanced

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

Re: String internals sketch


From: David Kastrup
Subject: Re: String internals sketch
Date: Sat, 11 Mar 2017 07:44:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Matt Wette <address@hidden> writes:

>> On Mar 10, 2017, at 7:31 AM, David Kastrup <address@hidden> wrote:
>> I've been mulling a bit over enabling UTF-8 as an internal string
>> representation.  There are several interesting points to consider:
>
> One point to consider on this topic is that guile is targeted (via the
> compiler tower) to support other languages.  Strings in ecmascript,
> for example, are 16-bit code points, not 8 or 32.  I personally don’t
> care that the guile-2.2 hosted ecmascript can’t be a pedantic
> implementation, but it may generate issues so some down the road.

Well, that's an "engine" one would need to create complete support for.
Some things would be nicer to specify via C++ templates rather than
function hooks.  C macros can sort-of be used for providing similar
functionality, but they are quite more opaque to compiler, debugger, and
programmer and more ad-hoc.

Not proposing to move to C++: that would seriously impact the ability to
integrate into other systems.  Just a musing.

-- 
David Kastrup




reply via email to

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