Re: Undo char-name
Kon Lovett via Chicken-users <[email protected]> Thu, 25 Jun 2026 08:39:50 -0700
| Newsgroups | gmane.lisp.scheme.chicken |
|---|---|
| Message-ID | <[email protected]> |
> On Jun 25, 2026, at 8:28=E2=80=AFAM, Hern=C3=A1n Ibarra Mejia via = Chicken-users <[email protected]> wrote: >=20 > Hello, >=20 > Is there a way to undefine character names defined with `char-name`? = Or at least > keep them local to a module? >=20 > To avoid XY problem: > I am writing an reader extension and a characters like #\(, #\[, #\{ > frequently appear inside case-statements. They are confusing my text = editor. > Nothing I've came up with is satisfactory. >=20 > - variables cannot cannot be used as data in case-statements miscmacros egg `select=E2=80=99 macro like case but evals key values > - ASCII/Unicode representations hamper readability. > - Character names defined with `char-name` leak outside my module. (with-char-name NAMES BODY=E2=80=A6) macro? (joke, but `char-name=E2=80=99= is quick) >=20 > I'm fairly new to CHICKEN so forgive me if I overlooked something = obvious. >=20 > Cheers, > Hern=C3=A1n >=20