[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: |
Clément Pit-Claudel |
Subject: |
Re: If records are not sequences, why does aref work on records? |
Date: |
Fri, 7 Apr 2017 16:12:33 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 2017-04-07 15:41, Noam Postavsky wrote:
> On Fri, Apr 7, 2017 at 3:25 PM, Clément Pit-Claudel
> <address@hidden> wrote:
>> On 2017-04-07 15:07, Noam Postavsky wrote:
>>> If you do (cl-defstruct person age height), you
>>> don't care whether 'age' goes before 'height', just that person-age
>>> gives you the age field.
>>
>> Sometimes you do — for example, you might know that multiple structures in
>> your application have the same data in their first field, and if so (aref x
>> 1) should work.
>
> In that case, you should be probably be using :include for the common
> parts, or else :type to explicitly use vectors.
Very good point.
> I'm sure you can come up with exceptions to that too though :)
Hum. Users who don't read the manual closely enough ? 😳 :)
- Re: If records are not sequences, why does aref work on records?, (continued)
- 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?, Philipp Stephani, 2017/04/08
- Re: If records are not sequences, why does aref work on records?, Clément Pit-Claudel, 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?, Clément Pit-Claudel, 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?, Richard Stallman, 2017/04/09
- Re: If records are not sequences, why does aref work on records?, Stefan Monnier, 2017/04/11
- 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?,
Clément Pit-Claudel <=
- 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?, Clément Pit-Claudel, 2017/04/07
Re: Recent change in master breaks async package update using paradox, Lars Brinkhoff, 2017/04/07