[flexi-streams-devel] refactoring *provide-use-value-restart*
Anton Vodonosov
vodonosov at mail.ru
Sun Feb 25 13:59:02 UTC 2007
We also can get rid of *use-replacement-char*, as
in the attached pseudo patch.
Regards,
-Anton
Anton Vodonosov:
> Rightest one attached here - using
> (char-code *substitution-char*) instead of
> *substitution-char* itself.
>
> Sorry again,
> -Anton
>
> Anton Vodonosov:
>> Sorry, patch in previouse message contains few copy-pasted
>> lines that I forgot to remove. Right version is attached.
>>
>> -Anton
>>
>> Anton Vodonosov:
>>> Hi!
>>>
>>> Edi, what do you think about following refactoring.
>>>
>>> Remove *provide-use-value-restart* variable, but save
>>> performance.
>>>
>>> To avoid verbose description, I've attached a patch.
>>> It is only a sketch of how it can be done, I event
>>> haven't compiled it.
>>>
>>> Thus public interface of the library may be simplified,
>>> at the cost of more complex responsibilities of char-readers
>>> defined using define-char-reader macro: they should use
>>> recover-from-encoding-error.
>>>
>>> By the way. May be define-char-code-reader is more accurate
>>> name for the macro than define-cahr-reader
>>>
>>> Regards,
>>> -Anton
>>>
>>>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: input.lisp.diff
URL: <https://mailman.common-lisp.net/pipermail/flexi-streams-devel/attachments/20070225/6522d16b/attachment.ksh>
More information about the Flexi-streams-devel
mailing list