all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why malformed let-form is silently accepted?
@ 2014-09-16 16:59 Dmitry Antipov
  2014-09-16 21:02 ` Stefan Monnier
  2014-09-16 23:47 ` Stephen J. Turnbull
  0 siblings, 2 replies; 4+ messages in thread
From: Dmitry Antipov @ 2014-09-16 16:59 UTC (permalink / raw)
  To: Emacs development discussions

(let 1) ==> eval: Wrong type argument: sequencep, 1
(let [1 2 3 4]) ==> nil ???

Dmitry



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Why malformed let-form is silently accepted?
  2014-09-16 16:59 Why malformed let-form is silently accepted? Dmitry Antipov
@ 2014-09-16 21:02 ` Stefan Monnier
  2014-09-16 21:52   ` David Kastrup
  2014-09-16 23:47 ` Stephen J. Turnbull
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2014-09-16 21:02 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Emacs development discussions

> (let 1) ==> eval: Wrong type argument: sequencep, 1
> (let [1 2 3 4]) ==> nil ???

I don't think the behavior matters much when we pass invalid code to
`eval'.  OTOH it's important that we report it when byte-compiling it.


        Stefan "`eval' is just a crutch needed for bootstrapping"



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Why malformed let-form is silently accepted?
  2014-09-16 21:02 ` Stefan Monnier
@ 2014-09-16 21:52   ` David Kastrup
  0 siblings, 0 replies; 4+ messages in thread
From: David Kastrup @ 2014-09-16 21:52 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> (let 1) ==> eval: Wrong type argument: sequencep, 1
>> (let [1 2 3 4]) ==> nil ???
>
> I don't think the behavior matters much when we pass invalid code to
> `eval'.  OTOH it's important that we report it when byte-compiling it.
>
>
>         Stefan "`eval' is just a crutch needed for bootstrapping"

Chewing is just a crutch when nobody is regurgitating for you.

-- 
David Kastrup




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Why malformed let-form is silently accepted?
  2014-09-16 16:59 Why malformed let-form is silently accepted? Dmitry Antipov
  2014-09-16 21:02 ` Stefan Monnier
@ 2014-09-16 23:47 ` Stephen J. Turnbull
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen J. Turnbull @ 2014-09-16 23:47 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Emacs development discussions

Dmitry Antipov writes:

 > (let 1) ==> eval: Wrong type argument: sequencep, 1
 > (let [1 2 3 4]) ==> nil ???

Not in XEmacs, which tests for listp, not sequencep.

I guess Stefan is trying to evolve Elisp into Clojure, or maybe
Python.

Shouldn't-that-test-be-monadp-ly y'rs,

.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-16 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 16:59 Why malformed let-form is silently accepted? Dmitry Antipov
2014-09-16 21:02 ` Stefan Monnier
2014-09-16 21:52   ` David Kastrup
2014-09-16 23:47 ` Stephen J. Turnbull

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.