[racket] function of | in reader

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Sun Jun 26 09:40:09 EDT 2011

To amend that question: When reading Racket code, will "|" *always* 
delimit either a symbol or a substring of a symbol?

Neil Van Dyke wrote at 06/26/2011 06:04 AM:
> When reading Racket code, will "|" *always* delimit a symbol, or can 
> it cause something other than a symbol to be read?
>
> I thought "|" always delimited a symbol, but if so, then the 
> documentation at 
> "http://doc.racket-lang.org/reference/reader.html#(part._default-readtable-dispatch)" 
> seems obtuse:
>
>> | starts a subsequence of characters to be included verbatim in the 
>> delimited sequence (i.e., they are never treated as delimiters, and 
>> they are not case-folded when case-insensitivity is enabled); the 
>> subsequence is terminated by another |, and neither the initial nor 
>> terminating | is part of the subsequence.

-- 
http://www.neilvandyke.org/


Posted on the users mailing list.