[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-record
From: |
Stefan Monnier |
Subject: |
Re: make-record |
Date: |
Sat, 23 Dec 2017 10:53:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> So how about making 'make-record' validate the type,
> and having another function 'make-record-fast' which doesn't validate?
> I think this gets the best of both worlds.
No program uses directly `make-record` (or `record` for that matter).
They are used internally by cl-lib and eieio to implement cl-defstruct
and eieio's defclass. So, `make-record` and `record` should be of the
"fast" kind, since the extra check can be in defclass and cl-defstruct
(where it's very cheap anyway).
Stefan
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., (continued)
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Philipp Stephani, 2017/12/21
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Stefan Monnier, 2017/12/21
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Richard Stallman, 2017/12/22
- [SUSPECTED SPAM] Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Stefan Monnier, 2017/12/22
- Re: [SUSPECTED SPAM] Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Richard Stallman, 2017/12/23
- make-record, Richard Stallman, 2017/12/23
- Re: make-record,
Stefan Monnier <=
- Re: make-record, Richard Stallman, 2017/12/24
- Re: make-record, Stefan Monnier, 2017/12/25
- Re: make-record, Richard Stallman, 2017/12/26
Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Richard Stallman, 2017/12/12