emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Naming conventions for eieio slot accessors


From: Fu Yuan
Subject: Naming conventions for eieio slot accessors
Date: Sat, 3 Nov 2018 17:43:02 -0400

Hi,

I'm writing a package which takes advantage of eieio.
When defining classes, I couldn't figure out how to name
the accessors.

First, should I use prefixes? Second, if I use a prefix,
should I use a double dash (--) or single dash (-)?

Say I'm writing a package called uikit.el and I have a class
`uikit-view' with a slot `name'.

Should I write

    (defclass uikit-view ()
      ((name
        :accessor uikit--name-of)))

or

    (defclass uikit-view ()
      ((name
        :accessor uikit-name-of)))

or

    (defclass uikit-view ()
      ((name
        :accessor name-of)))

Thanks,
Sincerely, Yuan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]