Re: Undo char-name

Felix Winkelmann via Chicken-users <[email protected]> Thu, 25 Jun 2026 18:44:31 +0200
Newsgroups gmane.lisp.scheme.chicken
Message-ID <[email protected]>
On Thu Jun 25, 2026 at 5:28 PM CEST, Hern=C3=A1n Ibarra Mejia via Chicken-u=
sers wrote:
> Hello,
>
> Is there a way to undefine character names defined with `char-name`? Or a=
t least
> keep them local to a module?
>
> To avoid XY problem:
>   I am writing an reader extension and a characters like #\(, #\[, #\{
>   frequently appear inside case-statements. They are confusing my text ed=
itor.
>   Nothing I've came up with is satisfactory.
>
>   - variables cannot cannot be used as data in case-statements
>   - ASCII/Unicode representations hamper readability.
>   - Character names defined with `char-name` leak outside my module.
>

Currently, there is no way to undo "char-name", which I think is an
omission. I will try to find a clean way of doing this.


cheers,
felix