all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] master 9c4e309: Check that variable lists are actually lists
       [not found] ` <20170119161943.49263220159@vcs.savannah.gnu.org>
@ 2017-01-19 16:40   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2017-01-19 16:40 UTC (permalink / raw
  To: emacs-devel; +Cc: Philipp Stephani

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


        Stefan



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-19 16:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20170119161943.5234.63498@vcs.savannah.gnu.org>
     [not found] ` <20170119161943.49263220159@vcs.savannah.gnu.org>
2017-01-19 16:40   ` [Emacs-diffs] master 9c4e309: Check that variable lists are actually lists Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.