[racket] function of | in reader
A "|" never delimits in the sense of ending a symbol. For example,
2|b|1
reads the same as
2b1
because the symbol continues after each "|".
Is that the sense of "delimit" that you mean?
At Sun, 26 Jun 2011 09:40:09 -0400, Neil Van Dyke wrote:
> 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-dispa
> tch)"
> > 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/
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users