unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* defstruct/copier and constructor: VERB-NOUN or NOUN-VERB
@ 2013-09-03  9:03 Jambunathan K
  2013-09-03 13:50 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Jambunathan K @ 2013-09-03  9:03 UTC (permalink / raw)
  To: emacs-devel


From ox.el (Org Trunk)

    (defstruct (org-export-backend (:constructor org-export-create-backend)
                                   )
      name parent transcoders options filters blocks menu)

The constructor is defined so that one gets the canonical prefix,
instead of the default.  Likewise for copier.

I am wondering whether elisp /can/ generate NAME-VERB by default rather
than the usual VERB-NAME.

I know nothing about Common Lisp.  So just throwing something in the
wild...






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

* Re: defstruct/copier and constructor: VERB-NOUN or NOUN-VERB
  2013-09-03  9:03 defstruct/copier and constructor: VERB-NOUN or NOUN-VERB Jambunathan K
@ 2013-09-03 13:50 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-09-03 13:50 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-devel

> I am wondering whether elisp /can/ generate NAME-VERB by default rather
> than the usual VERB-NAME.

Technically, there's no difficulty, of course.
But we're talking about cl-defstruct, which is meant to simulate
CommonLisp's behavior, which is why it uses the CL naming convention.


        Stefan



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

end of thread, other threads:[~2013-09-03 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03  9:03 defstruct/copier and constructor: VERB-NOUN or NOUN-VERB Jambunathan K
2013-09-03 13:50 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

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).