[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/1] Support mkdtemp via mkdtemp! and scm_mkdtemp

From: Rob Browning
Subject: Re: [PATCH 1/1] Support mkdtemp via mkdtemp! and scm_mkdtemp
Date: Mon, 04 Jan 2021 18:42:07 -0600

Rob Browning <> writes:

> Mike Gran <> writes:
>> Since mkdtemp already returns a string of the new directory name,
>> it might be more scheme-like to not modify the input string, and instead
>> just return the new directory name.
> Perhaps, though I was just matching the existing semantics of guile
> mkstemp, i.e. figured maybe they should behave the same.

...mkstemp! I meant, and I think I might still somewhat favor keeping
the correspondence between a mkstemp! and mkdtemp! that have the same
semantics, and more or less directly match their POSIX functions.

Though if we thought it was worth it, I suppose we could also provide
trivial mkstemp and mkdtemp wrappers (without the exclamation points),
that do the extra copy for you.

Rob Browning
rlb and
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

reply via email to

[Prev in Thread] Current Thread [Next in Thread]