[plt-scheme] UUID Question

From: Sam TH (samth at ccs.neu.edu)
Date: Wed Dec 16 10:44:08 EST 2009

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


Posted on the users mailing list.