IRC channel logs

2025-08-12.log

back to list of logs

<dsmith>How can more than one ... work? (a b ... c ...) Where does b end or c begin?
<rlb>dsmith: depending on what you mean, I was recently surprised (probably just late to the party) to see support for custom ellipses in r7rs -- https://r7rs.org/large/fascicles/macro/1/syntax-case-system.html
<rlb>e.g. https://github.com/scheme-requests-for-implementation/srfi-197/blob/master/srfi-197.scm
<rlb>…₁ and …₂ etc.
<rlb>s/e.g./noticed when porting/
<dsmith>rlb, I was referring to dpk's comment about "more than one ellipsis per list/vector"
<dsmith>dpk, ^^
<rlb>oh, ok, right.
<old>dsmith: it can't? AFAIK
<dpk>dsmith: in that case the patterns ‘b’ and ‘c’ are completely ambiguous with respect to one another: the result specified by SRFI 262 is that ‘b’ contains all the elements (except the first which is ‘a’) and ‘c’ will always be an empty list, because the leftmost priority rule applies
<dpk>but see the examples here https://srfi.schemers.org/srfi-262/srfi-262.html#entry:list
<dpk>especially the syms/nums one and the 'split ones
<dsmith>dpk, Thanks. Makes sense now.
<sneek>Welcome back chrislck!!
<chrislck>sneek: botsnack
<sneek>:)
<mwnaylor>etb
<mwnaylor>Typo, ignore.
<ieure>Extra Thpechial Bitter?