>> 
>> 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

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to