Get and set current directory Lassi Kortela (21 Jul 2019 12:26 UTC)
Re: Observations from the process of implementing some of the SRFI in Chibi Scheme Marc Feeley (21 Jul 2019 12:27 UTC)
Get and set current directory Lassi Kortela (21 Jul 2019 12:40 UTC)
Re: Get and set current directory Lassi Kortela (21 Jul 2019 13:44 UTC)
Re: Get and set current directory Lassi Kortela (21 Jul 2019 13:59 UTC)
Re: Get and set current directory Marc Feeley (21 Jul 2019 14:25 UTC)
Re: Get and set current directory Lassi Kortela (21 Jul 2019 14:56 UTC)
Re: Get and set current directory Shiro Kawai (21 Jul 2019 20:59 UTC)
Re: Get and set current directory John Cowan (21 Jul 2019 22:35 UTC)

Re: Observations from the process of implementing some of the SRFI in Chibi Scheme Marc Feeley 21 Jul 2019 12:26 UTC

How about a “current-directory” parameter object with

(current-directory) => string
(current-directory string)   ;; sets the current directory

just like current-output-port, current-exception-handler, etc

This has the advantage that each thread can manage their own current directory using “parameterize” to avoid interfeering with other threads

Marc

> On Jul 21, 2019, at 8:21 AM, Lassi Kortela <xxxxxx@lassi.io> wrote:
>
> I sympathize with these naming concerns. "pwd" and "cwd" are especially confusing names.
>
> R7RS has 'get-environment-variable' (didn't find an equivalent in R6RS). So how about:
>
> (get-current-directory) => string
> (set-current-directory! string)
>