[plt-scheme] UUID Question

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Wed Dec 16 10:50:32 EST 2009

I didn't want to use any reference to RFC 4122 (like #:rfc4122) IS the
problem - the reference implementation has a bug. If you follow the
algorithm you get an answer different that the code. And, #:strict has the
same problem - strick adherence to what: the algorithm or the code.
Basically, #:force is forcing 'buggy' behaviour.

On Wed, Dec 16, 2009 at 8:44 AM, Sam TH <samth at ccs.neu.edu> wrote:

> On Wed, Dec 16, 2009 at 10:39 AM, Doug Williams
> <m.douglas.williams at gmail.com> wrote:
> > I thought about it. I named the boolean force? and would likely use the
> > keyword #::force, since longer, more descriptive ones seem somewhat
> > annoying. That would give (make-uuid-3 namespace-DNS "www.widgets.com"
> > #:force #t). How does that look?
>
> Hmm.  What is being "forced" here?  I would think something like
> #:rfc4122 or #:strict would be more evocative.
>
> >
> > On Wed, Dec 16, 2009 at 8:31 AM, Sam TH <samth at ccs.neu.edu> wrote:
> >>
> >> On Wed, Dec 16, 2009 at 10:24 AM, Doug Williams
> >> <m.douglas.williams at gmail.com> wrote:
> >> >
> >> > ...
> >> > (make-uuid-3 namespace-DNS "www.widgets.com") = #<uuid
> >> > 3d813cbb-47fb-32ba-91df-831e1593ac29>
> >> > (make-uuid-3 namespace-DNS "www.widgets.com" #t) = #<uuid
> >> > e902893a-9d22-3c7e-a7b8-d6e313b71d9f>
> >> > ...
> >>
> >> I think it would be helpful to use an optional keyword argument here,
> >> rather than just an optional boolean.
> >>
> >> --
> >> sam th
> >> samth at ccs.neu.edu
> >
> >
>
>
>
> --
> sam th
> samth at ccs.neu.edu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091216/1afe9938/attachment.html>

Posted on the users mailing list.