emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]