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:26:35 +0100 (CET)

>> 
>> But let's not forget convenience...
> 
> I don't think (with-input-from-file (expand-path "~/foo") read) is less
> convenient than (with-input-from-file "~/foo" read expand-path: #t)

You misunderstood - I'm not proposing adding flags. The variable-name
expansion ("$...") is admittedly ugly and should go. But I find
the expansion of "~" handy and would like to keep it, at least for
higher-level file-system operations.

> 
> Not to mention that the latter is an awkward extension to the standard.
> 

It wasn't my idea.

> Finally, a flag would also need to go everywhere a path is accessed
> (including file-open, directory, directory?, call-with-input-file, etc...)
> unless you make it a parameter (which would be slower, if I'm not
> mistaken).

Performance is unimportant here. A global parameter would certainly
be a crock.


cheers,
felix



reply via email to

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