all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Question about function prefixes
@ 2017-10-08 17:29 Ian Dunn
  2017-10-08 19:42 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Dunn @ 2017-10-08 17:29 UTC (permalink / raw)
  To: emacs-devel


I've received a suggestion to add functionality for a Beaufort cipher[1] to my vigenere.el package.  A Beaufort cipher uses almost exactly the same algorithm as a Vigenere cipher, with some small changes.  The differences are small enough that I can modify vigenere.el to handle a Beaufort cipher with only a few lines changed.

Prefixing the Beaufort functions with "vigenere-" seems confusing to users, so would it be acceptable to prefix them with "beaufort-"?

[1] https://en.wikipedia.org/wiki/Beaufort_cipher

-- 
Ian Dunn



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

* RE: Question about function prefixes
  2017-10-08 17:29 Question about function prefixes Ian Dunn
@ 2017-10-08 19:42 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2017-10-08 19:42 UTC (permalink / raw)
  To: Ian Dunn, emacs-devel

> I've received a suggestion to add functionality for a Beaufort cipher[1] to
> my vigenere.el package.  A Beaufort cipher uses almost exactly the same
> algorithm as a Vigenere cipher, with some small changes.  The differences
> are small enough that I can modify vigenere.el to handle a Beaufort cipher
> with only a few lines changed.
> 
> Prefixing the Beaufort functions with "vigenere-" seems confusing to users,
> so would it be acceptable to prefix them with "beaufort-"?

Is this about the prefix you use in a library that you have
authored?  If so, you can use whatever prefix you like.
If you think that using prefix `vigenere-' for something
that is different from a Vigenere cipher, then consider
changing the prefix.



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

end of thread, other threads:[~2017-10-08 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-08 17:29 Question about function prefixes Ian Dunn
2017-10-08 19:42 ` Drew Adams

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.