GNU bug report logs - #47875
Elisp reader doesn't handle keywords

Previous Next

Package: guile;

Reported by: Leo Prikler <leo.prikler <at> student.tugraz.at>

Date: Sun, 18 Apr 2021 16:06:01 UTC

Severity: normal

Full log


Message #17 received at 47875 <at> debbugs.gnu.org (full text, mbox):

From: Ivan Sokolov <ivan-p-sokolov <at> ya.ru>
To: Leo Prikler <leo.prikler <at> student.tugraz.at>
Cc: 47875 <at> debbugs.gnu.org
Subject: Re: bug#47875: Elisp reader doesn't handle keywords
Date: Sun, 06 Jun 2021 21:21:39 +0300
Leo Prikler <leo.prikler <at> student.tugraz.at> writes:
> You could define Elisp symbolp as
> (lambda (thing)
>   (or (funcall (@ (guile) symbol?) thing)
>       (funcall (@ (guile) keyword?) thing)))
You are right, I haven't thought about changing the implementaion of
symbolp.

> but perhaps there's an even faster way to check this property.
Use guile-primitive instead of guile-ref? Both symbol? and keyword? are
primitives.




This bug report was last modified 4 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.