From: Geoffrey K. <gk...@ma...> - 2003-01-15 02:15:57
|
On Tuesday, Jan 14, 2003, at 20:54 US/Eastern, Ken Anderson wrote: > While Scheme's built in string handling is minimal, did you do this to > be portable among Scheme's or because JScheme's Scheme + Java did not > provide what you wanted? I confess I did not have a concrete plan, I was just mucking around. I had a "/path/to/a/FILE.ext", and I had to pull out just the "FILE" part [1], and I thought, gee, I bet MIT Scheme has string stuff I could use. Well, it worked, but after I did it, I realized I probably had to pull over more MIT Scheme than I strictly needed, and Java has String search/index functions already, and I could have done it that way. In fact, over lunch today I was telling a colleague I should time my FILE extraction with the code I've got, and compare it against doing it with Java String methods. Geoffrey [1] (I have other JScheme routines that return the nnn number given a demand stream's name, which you get by first looking up the filename given an MInvocID, for ICIS JChem.) |