On Thursday, September 17th, 2026 at 13:56, Daniel Colascione via Chicken-users 
<[email protected]> wrote:

> Why not just use mkstemp on platforms that support it and outsource the 
> fiddly bits?

I think the why not may merely be that nobody has prioritized it and actually 
done the patch yet. I was just looking at what this would entail. We do have a 
file-mkstemp in (chicken file posix), which is implemented with mkstemp on unix 
and a custom function on windows, but:

a) At least the Unix version is currently broken on master, something to do 
with the new string representation and u8 vectors, though this seems like a 
simple fix.
b) This would be a backward-incompatible change, right? Which might be fine, I 
just don't see that mkstemp has a way to create a temp file with a particular 
extension. I don't know how many people were using that feature of 
create-temporary-file.

Diego

Reply via email to