[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make-record
From: |
Richard Stallman |
Subject: |
make-record |
Date: |
Sat, 23 Dec 2017 09:56:08 -0500 |
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > Does `make-record' check that the specified record type is defined?
> No, `make-record` doesn't even really know what is a type.
Not checking the type name for validity is asking for trouble.
Perhaps some programs make a lot of records and need the extra speed
of a low-level primitive that doesn't check the validity. But surely
most programs that use records won't spend much of their time creating
records. In those programs, a function that does validate the type
would cause no visible slowdown.
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.
--
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Skype: No way! See https://stallman.org/skype.html.
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., (continued)
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Stephen Leake, 2017/12/13
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Richard Stallman, 2017/12/13
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Stefan Monnier, 2017/12/14
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Richard Stallman, 2017/12/14
- Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types., Richard Stallman, 2017/12/14
- 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 <=
- Re: make-record, Stefan Monnier, 2017/12/23
- 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