guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

port-filename and path canonicalization


From: Ludovic Courtès
Subject: port-filename and path canonicalization
Date: Tue, 20 Apr 2010 01:12:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi!

Andy Wingo <address@hidden> writes:

> I recently added a global fluid, %file-port-name-canonicalization, which
> defaults to #f. But if it's 'absolute, the port name of a file port will
> be canonicalized to the absolute path; or, if it's 'relative, the port
> name is the canonical name of the file, relative to the %load-path, or
> the file name as given otherwise.
>
> The intention was to allow the user to control (port-filename P), so
> that the user could find e.g. the absolute path corresponding to that
> port at the time that it was made.

My feeling is that ports shouldn’t have to deal with paths because
that’s a separate concern.  The %file-port-name-canonicalization fluid
seems like an inelegant hack to me.

When applications have special requirements about paths, then it should
be up to the application logic to deal with that.

Thanks,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]