emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master f6b5db6: Add support for generators


From: Daniel Colascione
Subject: Re: [Emacs-diffs] master f6b5db6: Add support for generators
Date: Wed, 04 Mar 2015 15:05:48 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 03/04/2015 03:02 PM, Stefan Monnier wrote:
>> Why should that be a bug?
> 
> Because the body is missing.
> Don't know, maybe it's just me.  I admit having seen things like
> 
>    (defun foo ())
> 
> but it always looked like a horrible abuse to me, rather than something
> I'd like to actively support.

It does work, though. It's analogous to (progn), (and), and (or), which
evolve to nil, nil, and t, respectively. Common Lisp also works fine
with empty function bodies. We shouldn't make empty functions work
everywhere except this one context.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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