[plt-dev] Re: loop over environment variables and delete an environment variable

From: Peter Michaux (petermichaux at gmail.com)
Date: Fri Sep 11 00:13:37 EDT 2009

On Thu, Sep 10, 2009 at 7:55 PM, Eli Barzilay <eli at barzilay.org> wrote:

>> Would a function like (environment->alist) be the desirable way to
>> access the full environment?
>
> IMO it would be simpler to have a function that returns a list of
> environment variable names, but it's probably a good idea to look
> around and see what other implementations (and other languages) do.

Not sure which implementations matter but...

Scheme48 has (environment-alist)

  http://www.s48.org/0.57/manual/s48manual_68.html

Gauche has (sys-environ) (sys-environ->alist)

  http://practical-scheme.net/gauche/man/gauche-refe_60.html#Environment-Inquiry

Peter


Posted on the dev mailing list.