[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names. |
Date: |
Wed, 04 May 2011 11:24:00 +0200 |
User-agent: |
Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) |
Hi Noah,
Noah Lavine <address@hidden> writes:
> The reason this strangeness enters is that path strings are actually
> lists (or vectors) encoded as strings. Conceptually, the path
> ~/Desktop/Getting\ a\ Job is the list ("~" "Desktop" "Getting a Job").
> In this representation, there are no escapes and no separators. It
> always seemed cleaner to me to think about it that way.
Agreed.
However, POSIX procedures deal with strings, so you still need to
convert to a string at some point. So I think there are few places
where you could really use anything other than strings to represent file
names—unless all of libguile is changed to deal with that, which seems
unreasonable to me.
MIT Scheme’s API goes this route, but that’s heavyweight and can hardly
be retrofitted in a file-name-as-strings implementation, I think:
<http://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Pathnames.html>.
> I said this is similar to the (web) module because of all of the
> discussion there of how HTTP encodes data types in text, and how it's
> better to think of a URI as URI type rather than a special string,
> etc.
Yes.
Thanks,
Ludo’.
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., (continued)
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Mark H Weaver, 2011/05/01
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Ludovic Courtès, 2011/05/02
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Andy Wingo, 2011/05/02
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Ludovic Courtès, 2011/05/02
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Andy Wingo, 2011/05/03
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Ludovic Courtès, 2011/05/03
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Mark H Weaver, 2011/05/04
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Noah Lavine, 2011/05/04
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.,
Ludovic Courtès <=
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Noah Lavine, 2011/05/17
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Mark H Weaver, 2011/05/17
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Mark H Weaver, 2011/05/17
- Filenames and other POSIX byte strings as SCM strings without loss, Mark H Weaver, 2011/05/23
- Paths as sequences of path components, Mark H Weaver, 2011/05/23
- Re: Paths as sequences of path components, Hans Aberg, 2011/05/24
- Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Eli Barzilay, 2011/05/03
Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names., Jan Nieuwenhuizen, 2011/05/20