all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kan-Ru Chen <kanru@kanru.info>
To: emacs-devel@gnu.org
Subject: Re: [RFC] Review uuid.el -- library for UUID generation
Date: Sun, 14 Nov 2010 15:08:54 +0800	[thread overview]
Message-ID: <87iq00s7p5.fsf@anar.kanru.info> (raw)
In-Reply-To: 87oc9tmabv.fsf@stupidchicken.com

Chong Yidong <cyd@stupidchicken.com> writes:

> Kan-Ru Chen <kanru@kanru.info> writes:
>
>> I recently started a new library project, uuid-el, for generating UUIDs
>> for RSS feeds, or other places where UUID are used.  Since this is my
>> first serious elisp program--a relatively simple one though--I'd like to
>> take the chance to improve the code and to learn some conventions.
>
> Pretty good for a first elisp program.  I don't see any convention
> violations.  Just one minor nitpick:
>
>   (let ((address (uuid-get-ieee-address)))
>     (mapconcat (lambda (var) (format "%02x" var))
>                address "")
>     ))
>
> Try not to leave close parentheses on lines by themselves; this tends to
> annoy Lisp programmers.

Thank you.

I've put the updated version on github.

Newer version uses `calc' package for bignum arithmetic, which should
work on more platform.  The only concern I have now is that the
`network-interface-list' and `network-interface-info' aren't widely
implemented or implemented correctly.  For example, only Linux version
of `network-interface-info' will return non-nil HWADDR.

-- 
A badly written book is only a blunder. A bad translation of a good
book is a crime.
                -- Gilbert Highet




      reply	other threads:[~2010-11-14  7:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09  4:07 [RFC] Review uuid.el -- library for UUID generation Kan-Ru Chen
2010-11-13 16:56 ` Chong Yidong
2010-11-14  7:08   ` Kan-Ru Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iq00s7p5.fsf@anar.kanru.info \
    --to=kanru@kanru.info \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.