all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: Garklein <garklein97@gmail.com>,  emacs-devel@gnu.org
Subject: Re: Elisp threading macros
Date: Thu, 29 Aug 2024 21:46:57 +0000	[thread overview]
Message-ID: <871q27vw6m.fsf@posteo.net> (raw)
In-Reply-To: <87le0f3u32.fsf@melete.silentflame.com> (Sean Whitton's message of "Thu, 29 Aug 2024 22:19:45 +0100")

Sean Whitton <spwhitton@spwhitton.name> writes:

> Hello,
>
> On Wed 28 Aug 2024 at 06:05pm GMT, Philip Kaludercic wrote:
>
>> Garklein <garklein97@gmail.com> writes:
>>
>>> Hello,
>>>
>>> Would it be possible to have the dash.el macros `->', `->>', `-->',
>>> and `-some->' in subr-x.el? I find them to be really useful, and would
>>> love to see them in the base language.
>>>
>>> I know that `thread-first' and `thread-last' exist, but I find that my
>>> eyes can recognize `->' and `->>' much easier. `-->' is really nice
>>> for more complex threading.
>>
>> This sounds more like a matter of habit.  FWIW I find a symbol like ->>
>> or --> very unusual for Elisp.  All in all, there are not that many if I
>> run this snippet
>
> Right, it's not Elisp/MacLisp/Common Lisp style to use names like that.
> Similar to how we use '-q' for predicates, and not '?', like Scheme does.
                         ^
                nitpick: -p

> Elisp is a classic Lisp, which gives it a coherent aesthetic, which
> helps with readability, I think.

I agree!  Elisp might have inconsistencies, but we can try to avoid
adding even more.

-- 
	Philip Kaludercic on peregrine



  reply	other threads:[~2024-08-29 21:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-28 14:08 Elisp threading macros Garklein
2024-08-28 15:51 ` Robert Pluim
2024-08-28 16:42   ` Visuwesh
2024-08-28 17:13     ` Henrik Kjerringvåg
2024-08-28 15:55 ` Eli Zaretskii
2024-08-28 18:23   ` Basil L. Contovounesios
2024-08-31 12:50   ` Augusto Stoffel
2024-08-28 18:05 ` Philip Kaludercic
2024-08-28 19:43   ` Garklein
2024-08-28 19:54     ` Philip Kaludercic
2024-08-29  4:45       ` tomas
2024-08-30  7:30         ` Joost Kremers
2024-08-29 21:19   ` Sean Whitton
2024-08-29 21:46     ` Philip Kaludercic [this message]
2024-08-28 18:29 ` Thierry Volpiatto
2024-08-28 19:35   ` Garklein
2024-08-30 12:26     ` Rudolf Adamkovič
2024-08-30 13:12       ` Robert Pluim
2024-08-30 17:15         ` [External] : " Drew Adams
2024-09-01 16:43           ` Alfred M. Szmidt
2024-09-01 21:02             ` Drew Adams
2024-08-29  0:48 ` Po Lu
2024-08-29  5:19 ` Alfred M. Szmidt
2024-08-30  0:57   ` Garklein

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=871q27vw6m.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=garklein97@gmail.com \
    --cc=spwhitton@spwhitton.name \
    /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.