[r6rs-discuss] Proposed features for small Scheme, part 4B: case-sensitivity
Peter Bex
Peter.Bex at xs4all.nl
Wed Sep 9 03:19:57 EDT 2009
On Tue, Sep 08, 2009 at 09:19:14PM -0700, Brian Harvey wrote:
> > For example, what will you suggest a natural interface to
> > import Xlib? It defines symbols like XK_A and XK_a,
>
> This is a strong argument, that definitely made me think hard about my
> position; interfacing with That Language code does seem to require some
> degree of following its rules.
>
> But I think the issues are more general than case-folding. What if some
> C library exports the symbol car? Is a Scheme program that interfaces
> with that library going to forgo using lists?
With a module system, the library could export 'car', and another library
could import the C library with either a prefix or simply omit 'car' from
the set of imported bindings. I see no problem here.
> So I'm afraid that the FFI library is going to end up using strings to
> represent the foreign symbols anyway.
I don't see why that is necessary.
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 478 bytes
Desc: not available
Url : http://lists.r6rs.org/pipermail/r6rs-discuss/attachments/20090909/c2f79f88/attachment-0001.pgp
More information about the r6rs-discuss
mailing list