chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.


From: Felix
Subject: Re: [Chicken-hackers] [PATCH 3/4] Remove ##sys#expand-home-path.
Date: Sat, 16 Mar 2013 11:30:15 +0100 (CET)

> One option may be to create an egg that modifies and exports all the
> affected code.  For example:
> 
> (define (with-input-from-file str thunk . mode)
>  (apply core:with-input-from-file (expand-path str) thunk mode))
> 
> And then you can import the module with or without a prefix if you
> want automatically-expanding versions.

This adds unnecessary layers of redundancy, just for the sake of
having a "clean file-system API", whatever that means. 

> 
> 
> A second option would be to provide a global boolean parameter
> such as (expand-pathnames) which would enable or disable automatic
> path expansion.

No, please not. 


cheers,
felix



reply via email to

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