[Top][All Lists]

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

Re: Docstring as only form in a function

From: Taylan Ulrich Bayırlı /Kammer
Subject: Re: Docstring as only form in a function
Date: Thu, 20 Feb 2014 21:22:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Arne Babenhauserheide <address@hidden> writes:

> What do you think?

I don't have a strong opinion at all, since this feels like a bikesheddy
issue, but I think the current behavior is more preferable.  A lambda
form cannot have an empty body, and having a docstring shouldn't change
that, so I would expect (lambda x "foo") to be either an error, or yield
a constant function.  The former would deviate from the standards and
possibly make some code break (though it's a trivial fix), and is not an
improvement in consistency either since docstrings aren't mandatory.


reply via email to

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