[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-slot-value confusion
From: |
Eric Abrahamsen |
Subject: |
Re: set-slot-value confusion |
Date: |
Sat, 06 Feb 2016 01:02:12 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> This function is obsolete since 25.1;
>> use (setf (slot-value ..) ..) instead
> [...]
>> So what should we be using instead of `set-slot-value'?
>
> It says right there: (setf (slot-value ..) ..)
Okay, but you see why the docstring is confusing: Function A is an alias
for Function B, meanwhile Function A is obsolete (use Function C
instead!) while Function B isn't...
> PS: `slot-value' (and its setf setter) is part of the CLOS standard,
> whereas set-slot-value is not. If you like to use EIEIO as an
> implementation of CLOS, then use slot-value and its setter, whereas
> if you prefer to use EIEIO as its own library (inspired by EIEIO),
> then use eieio-* names.
I'll have a think about where my loyalties lie :)
Thanks,
Eric