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


> On Jul 21, 2019, at 8:21 AM, Lassi Kortela <> 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)