GNU bug report logs -
#52063
28.0.60; Confusing presentation of lambda
Previous Next
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
> I'm asking why we are doing this. IT IS CONFUSING!!!
I think it would be more confusing to have some lambdas be lambdas and
some be closures. But it would certainly be possible to make the
closures that have no bindings into lambdas again.
Take this example:
(setq foo
(lambda (a)
(lambda ()
(+ a 2))))
(funcall (funcall foo 1))
If we eval-ed `foo' to a lambda here, the funcall would signal an error.
That is, I don't find it confusing -- I find it to be consistent.
Somebody that works in a lexically-bound Lisp has to deal with closures
sooner or later, so special-casing some bits seems counter-productive to
me. But perhaps others have other opinions here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 259 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.