all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: 57907@debbugs.gnu.org
Subject: bug#57907: 29.0.50; Using keywords with cl-loop
Date: Sun, 18 Sep 2022 12:52:14 +0000	[thread overview]
Message-ID: <87mtaw4zgh.fsf@posteo.net> (raw)
In-Reply-To: <a032694d-a686-83f3-3520-a75515a35740@gmail.com> ("Gerd Möllmann"'s message of "Sun, 18 Sep 2022 14:38:36 +0200")

Gerd Möllmann <gerd.moellmann@gmail.com> writes:

> From: Philip Kaludercic @ 2022-09-18 12:03 UTC (permalink / raw)
>   To: 57907
>
>
>> In Common Lisp the following to are equivalent
>>
>>    (loop :repeat 5 :collect t)
>>
>> and
>>
>>    (loop repeat 5 collect t)
>>
>> as keywords are shared among all packages.
>
> Actually, that's not the reason why Common Lisp accepts that.  The
> reason is that the loop macro only looks at symbol names.  In Common
> Lisp
>
> (symbol-name :a) => "A"
> (symbol-package :a) => #<PACKAGE "KEYWORD">
> (symbol-name foo:a) => "A"
> (symbol-package foo:a) => #<PACKAGE "FOO">

Interesting, I did not know this.  But the point remains that Common
Lisp's loop accepts both the symbol "a" from the "COMMON-LISP" package
and from the "KEYWORD" package, right?

> while in Emacs
>
> (symbol-name :a) => ":a"
>
> Wouldn't it be nice if Emacs finally decided to have Common Lisp packages?

Yeah, if only we could convince Emacs to do that ;)





  reply	other threads:[~2022-09-18 12:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-18 12:03 bug#57907: 29.0.50; Using keywords with cl-loop Philip Kaludercic
2022-09-18 12:20 ` Lars Ingebrigtsen
2022-09-18 12:28   ` Philip Kaludercic
2022-09-18 12:37     ` Lars Ingebrigtsen
2022-09-18 12:46       ` Philip Kaludercic
2022-09-19  8:06         ` Lars Ingebrigtsen
2022-09-19 10:16           ` Philip Kaludercic
2022-09-19 12:52             ` Lars Ingebrigtsen
     [not found] ` <handler.57907.B.166350264228653.ack@debbugs.gnu.org>
2022-09-18 12:26   ` bug#57907: Acknowledgement (29.0.50; Using keywords with cl-loop) Philip Kaludercic
2022-09-18 20:12     ` Philip Kaludercic
2022-09-18 12:38 ` bug#57907: 29.0.50; Using keywords with cl-loop Gerd Möllmann
2022-09-18 12:52   ` Philip Kaludercic [this message]
2022-09-18 13:01     ` Gerd Möllmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtaw4zgh.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=57907@debbugs.gnu.org \
    --cc=gerd.moellmann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.