[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 9c4e309: Check that variable lists are actually
Re: [Emacs-diffs] master 9c4e309: Check that variable lists are actually lists
Thu, 19 Jan 2017 11:40:16 -0500
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
> 'let' and 'let*' document that their first argument has to be a list,
> but don't check for that; instead, they allow (and silently ignore)
> other types. Introduce an explicit type check.
Notice that this may end up breaking currently working code :-(
The way we've generally handled such issues is basically that if the
programmer wants sanity checks, he should byte-compile his code.
This has two corollaries:
- We should make sure that the *byte-compiler* does warn about
ill-formed code (we currently don't do a great job of that).
- The interpreter can do whatever it wants with ill-formed code and
doesn't need to go out of its way to detect it.
|[Prev in Thread]
||[Next in Thread]|
- Re: [Emacs-diffs] master 9c4e309: Check that variable lists are actually lists,
Stefan Monnier <=