unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* syntax question for defun
@ 2024-08-28 20:01 David Elson
  2024-08-29  4:57 ` tomas
  0 siblings, 1 reply; 5+ messages in thread
From: David Elson @ 2024-08-28 20:01 UTC (permalink / raw)
  To: help-gnu-emacs

Hello. I have been using emacs for ... a while.

For questions, I have often browsed and browsed (i.e. googled) and ... 
and usually find a good explanation. But sometimes I don't find an 
answer, even when it is staring right at me.

My question:

To emulate something akin to the PL1/C/C++ arrow notation, I have used:

*(defun -> (object method &rest args) ...)*

and it works.

*Is this valid elisp/lisp?*

If it works only coincidentally, then it might break in the future, when 
a pressing emacs issue is resolved in a manner that requires plugging 
this "loophole".

If it is formally valid, where does it document the level of flexibility 
that allows this syntax?

If it is not formally valid, then why does it work coincidentally?

I'd like to enhance/use this code, but I hesitate due to this question.

Thanks in advance?

-David



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-29 19:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28 20:01 syntax question for defun David Elson
2024-08-29  4:57 ` tomas
2024-08-29 16:45   ` David Elson
2024-08-29 18:29     ` tomas
2024-08-29 19:28     ` Stefan Monnier via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).