On 9-Sep-09, at 8:20 AM, Peter Bex wrote: > On Wed, Sep 09, 2009 at 08:03:28AM -0400, Marc Feeley wrote: >> That's what Gambit does. Take the syntax of strings, exchange the >> meaning of " and | and you get symbols that preserve their case: >> >> (string? "Hi there!") -> #t >> (symbol? |Hi there!|) -> #t > > Are "escaped symbols" implicitly quoted in Gambit, or did you forget > the '? In Chicken: > > (symbol? '|Hi there!|) => #t > > (define |Hi there!| "A very strange identifier") > > |Hi there!| => "A very strange identifier"
Sorry... typed without thinking... I was focused on lining up the two lines. So your code is correct. I like this syntax because it looks like the CL syntax, and it is very simple concept to grasp once you know the string syntax (i.e. few of my precious neurons are consumed by this feature). Marc _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
