home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / emacs / 2892 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.3 KB

  1. Xref: sparky comp.emacs:2892 gnu.emacs.help:3772
  2. Newsgroups: comp.emacs,gnu.emacs.help
  3. Path: sparky!uunet!mcsun!sunic!liuida!isy!lysator.liu.se!ceder
  4. From: ceder@lysator.liu.se (Per Cederqvist)
  5. Subject: Prefix in elisp packages
  6. Message-ID: <1532@lysator.liu.se>
  7. Summary: Should we use prefix: instead of prefix- in elisp programs?
  8. Keywords: Prefix, colon
  9. Sender: news@isy.liu.se (Lord of the News)
  10. Organization: Lysator Academic Computer Society, Linkoping University, Sweden
  11. Date: Tue, 18 Aug 1992 22:00:44 GMT
  12. Lines: 22
  13.  
  14. In Common Lisp you reference a symbol in a package by saying
  15. package:symbol.  The normal convention in Emacs Lisp is to use
  16. package-symbol instead.
  17.  
  18. I have seen that Epoch uses the Common Lisp convention, and I
  19. like it.  It makes the names more readable, in my opinion.
  20.  
  21. Common Lisp also uses package::symbol for internal symbols
  22. (similar to static functions in C).  Even if Emacs Lisp doesn't
  23. have any package mechanism that convention makes it easy to see
  24. which functions in a package that are intended for general use.
  25.  
  26. Is there any reason not to adopt the Common Lisp convention in
  27. new packages?
  28.  
  29.  
  30. Disclaimer: I don't know the origin of the : convention.
  31.  
  32. --
  33. Per Cederqvist, Lysator Academic Computer Assoc., Univ. of Linkoping, Sweden
  34. Email: ceder@lysator.liu.se    
  35. Phone: +46 13 26 09 17         "CVS - Check It Out!"
  36.