[plt-scheme] UUID Question

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Wed Dec 16 11:06:09 EST 2009

Dave gets the gold star and a 30 minute break from grading finals (making an
assumption about current NEU activities there). So here is the test output
for (what I hope is) the final version so you can see some of the other
capabilities.

Welcome to DrScheme, version 4.2.3 [3m].
Language: Module; memory limit: 2048 megabytes.
(make-uuid-1) = #<uuid 06d644d0-ea5c-11de-b1cf-001b779c76e3>
Wednesday, December 16th, 2009 8:59:44am
(make-uuid-3 namespace-DNS "www.widgets.com") = #<uuid
3d813cbb-47fb-32ba-91df-831e1593ac29>
(make-uuid-3 namespace-DNS "www.widgets.com" #:legacy #t) = #<uuid
e902893a-9d22-3c7e-a7b8-d6e313b71d9f>
(make-uuid-5 namespace-DNS "www.widgets.com") = #<uuid
21f7f8de-8051-5b89-8680-0195ef798b6a>
(make-uuid-5 namespace-DNS "www.widgets.com" #:legacy #t) = #<uuid
13726f09-44a9-5eeb-8910-3525a23fb23b>
(make-uuid-4) = #<uuid b27e7b45-1966-493b-947d-087f6d886dbe>
U4 = #<uuid b27e7b45-1966-493b-947d-087f6d886dbe>
(uuid->string U4) = "b27e7b45-1966-493b-947d-087f6d886dbe"
(uuid->urn-string U4) = "urn:uuid:b27e7b45-1966-493b-947d-087f6d886dbe"
namespace-DNS = #<uuid 6ba7b810-9dad-11d1-80b4-00c04fd430c8>
(uuid=? U4 U4) = #t
(uuid=? U4 namespace-DNS) = #f
(uuid<? U4 namespace-DNS) = #f
(uuid>? U4 namespace-DNS) = #t
>

On Wed, Dec 16, 2009 at 8:50 AM, Dave Herman <dherman at ccs.neu.edu> wrote:

> #:legacy ?
>
>
> Sam TH 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
>>>>
>>>
>>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091216/9ebbc40c/attachment.html>

Posted on the users mailing list.