From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 1/1] Support mkdtemp via mkdtemp! and scm_mkdtemp Date: Mon, 04 Jan 2021 18:42:07 -0600 Message-ID: <875z4ctdsw.fsf@trouble.defaultvalue.org> References: <20201230015005.335417-1-rlb@defaultvalue.org> <20201230084122.GA824833@spikycactus.com> <87pn2q28ue.fsf@trouble.defaultvalue.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23615"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jan 05 01:43:02 2021 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwaRB-00061o-4q for guile-devel@m.gmane-mx.org; Tue, 05 Jan 2021 01:43:01 +0100 Original-Received: from localhost ([::1]:33788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwaRA-0001DJ-5M for guile-devel@m.gmane-mx.org; Mon, 04 Jan 2021 19:43:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwaQT-0001Cx-9k for guile-devel@gnu.org; Mon, 04 Jan 2021 19:42:19 -0500 Original-Received: from defaultvalue.org ([45.33.119.55]:47708) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwaQM-0003Lj-Kc for guile-devel@gnu.org; Mon, 04 Jan 2021 19:42:16 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 42CCD2031E; Mon, 4 Jan 2021 18:42:08 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id BB79514E63A; Mon, 4 Jan 2021 18:42:07 -0600 (CST) In-Reply-To: <87pn2q28ue.fsf@trouble.defaultvalue.org> Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@defaultvalue.org; helo=defaultvalue.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20629 Archived-At: 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 @defaultvalue.org and @debian.org 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