From: Ken A. <kan...@bb...> - 2003-01-06 15:12:06
|
Yes. This is another difference between Scheme and JScheme. We seem to use string-append a lot, so it seemed convenient to turn each argument into its string representation. It may be unnecessary work, but it simplifies the code you right. Rather than: > (string-append "It is now " (.toString (Date.))) "It is now Mon Jan 06 10:07:41 EST 2003" > You just say: > (string-append "It is now " (Date.)) "It is now Mon Jan 06 10:10:27 EST 2003" In fact, we use string-append so much, we made an alternative syntax for it: > {It is now [(Date.)]} "It is now Mon Jan 06 10:03:38 EST 2003" > At 11:26 PM 1/5/2003, Geoffrey Knauth wrote: >I found these anomalies when using string-append with JScheme 4.2.2/5.0: > >> (string-append "a" "b" '()) >"ab()" >> (string-append "a" "b" #f) >"ab#f" > >DrScheme detects the 3rd argument is not a string and reports an error. > >Not a show-stopper for me, just something I noticed. > >Geoffrey > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Jscheme-devel mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-devel |