This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Auto type conversion in target languages
- To: guile at sourceware dot cygnus dot com
- Subject: Auto type conversion in target languages
- From: Jorgen `forcer' Schaefer <forcer at mindless dot com>
- Date: Tue, 21 Dec 1999 15:40:53 +0100 (CET)
(hi)
One of the bigger problems in supporting different languages for
now seems to be that some are auto-type-converted (e.g. they
change the type of a variable according to what is needed right
now, i.e. Perl, Tcl, PHP, etc.)
This raises the need to introduce "import" functions to import
Scheme functions into the language name space. That's a Bad Thing
imho, because that makes their use quite difficult.
If in the tcl world someone says
double "100"
then foo can quite plausibly return 200, but the tcl reader for
Guile has no idea that double wants a number not a string.
Has anyone any thoughts about this?
-- forcer
--
((email . "forcer@mindless.com") (www . "http://forcix.cx/")
(irc . "forcer@#StarWars (IRCnet)") (gpg . "/other/forcer.gpg"))