[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: If records are not sequences, why does aref work on records?
From: |
Drew Adams |
Subject: |
RE: If records are not sequences, why does aref work on records? |
Date: |
Fri, 7 Apr 2017 11:30:16 -0700 (PDT) |
> > If the intention is to add a new kind of sequence, for
> > example to add a record type and have it be considered
> > a type of sequence, then I think it should support all
> > sequence features, just like other sequences.
> >
> > If it does not support everything intended by "sequence"
> > then I think we should not present it as a sequence. In
> > particular, it should not be documented as a sequence in
> > that case.
> >
> > As to what a sequence is, one guide is to refer to Common
> > Lisp, which carefully defines sequences and sequence
> > operations.
>
> So what do you think about the byte-code type, which supports many, but
> not all, sequence operations? Is that a long-standing bug?
I know nothing about it; sorry. If it is then it is.
Emacs, like Common Lisp, should have a well-defined sequence
type. We aren't required to model ours on CL's, but other
things being equal it wouldn't be a bad idea to look to CL
for guidance/inspiration.
Just one opinion.
- Re: Debugging problems using async.el, (continued)
- Re: Recent change in master breaks async package update using paradox, Stefan Monnier, 2017/04/07
- What is a "sequence"?, Lars Brinkhoff, 2017/04/07
- Re: What is a "sequence"?, Stefan Monnier, 2017/04/07
- If records are not sequences, why does aref work on records?, Paul Eggert, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Lars Brinkhoff, 2017/04/07
- RE: If records are not sequences, why does aref work on records?, Drew Adams, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Lars Brinkhoff, 2017/04/07
- RE: If records are not sequences, why does aref work on records?,
Drew Adams <=
- Re: If records are not sequences, why does aref work on records?, Noam Postavsky, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Stefan Monnier, 2017/04/07
- RE: If records are not sequences, why does aref work on records?, Drew Adams, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Clément Pit-Claudel, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Noam Postavsky, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Paul Eggert, 2017/04/07
- Re: If records are not sequences, why does aref work on records?, Lars Brinkhoff, 2017/04/08
- Re: If records are not sequences, why does aref work on records?, Lars Brinkhoff, 2017/04/08
- Re: If records are not sequences, why does aref work on records?, Noam Postavsky, 2017/04/08
- Re: If records are not sequences, why does aref work on records?, Paul Eggert, 2017/04/08