GNU bug report logs - #26221
(defun function nil should work in 2.2

Previous Next

Package: guile;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Wed, 22 Mar 2017 22:02:02 UTC

Severity: normal

Done: Taylan Kammer <taylan.kammer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26221 in the body.
You can then email your comments to 26221 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#26221; Package guile. (Wed, 22 Mar 2017 22:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean Louis <bugs <at> gnu.support>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 22 Mar 2017 22:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jean Louis <bugs <at> gnu.support>
To: bug-guile <at> gnu.org
Subject: (defun function nil should work in 2.2
Date: Thu, 23 Mar 2017 00:48:53 +0300
In my opinion, (defun hello nil (print "Hello")) should work in
Guile-2.2 but it does not.

If it works in Emacs it should work in Guile with the option
--language=elisp

Jean




Information forwarded to bug-guile <at> gnu.org:
bug#26221; Package guile. (Thu, 23 Mar 2017 20:01:01 GMT) Full text and rfc822 format available.

Message #8 received at 26221 <at> debbugs.gnu.org (full text, mbox):

From: Joshua Branson <bransoj <at> hotmail.com>
To: "26221 <at> debbugs.gnu.org" <26221 <at> debbugs.gnu.org>
Subject: (define function nil should work in 2.2
Date: Thu, 23 Mar 2017 19:59:04 +0000
I can confirm this bug.  Eshell accepts (defun hello nil (print “Hello"))  And (hello)  works properly.

M-x guiler

,languages elisp

(defun hello nil (print “Hello”))  doesn’t work.

Joshua

P.S.  I didn’t even know (define function nil …) was a thing in elisp land.

Information forwarded to bug-guile <at> gnu.org:
bug#26221; Package guile. (Fri, 24 Mar 2017 09:20:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: <tomas <at> tuxteam.de>
To: bug-guile <at> gnu.org
Subject: Re: bug#26221: (define function nil should work in 2.2
Date: Fri, 24 Mar 2017 10:19:25 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Mar 23, 2017 at 07:59:04PM +0000, Joshua Branson wrote:
> 
> I can confirm this bug.  Eshell accepts (defun hello nil (print “Hello"))  And (hello)  works properly.
> 
> M-x guiler
> 
> ,languages elisp
> 
> (defun hello nil (print “Hello”))  doesn’t work.
> 
> Joshua
> 
> P.S.  I didn’t even know (define function nil …) was a thing in elisp land.

No, no. It's not (defun nil) -- it's (defun foo nil ...), which, if you squint a
bit is the same (in Lisp!) as (defun foo () ...) -- defining function foo with
an empty argument list. This is a perfectly respectable thing to do.

That's because, for Lisp, nil, '() and false are all one and the same. Scheme
is pickier here, and I'd imagine that this is the reflection of one of those
translation pains. But I don't know enough about Guile's elisp implementation
to be sure (ah, I wish I had the time for that...)

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAljU5J0ACgkQBcgs9XrR2kY2SACffmA4jJ06fft6EBCbhm3m7Zwj
8Y8AnitudhEOZQjCzsa/tu29vFtNEFhZ
=0umF
-----END PGP SIGNATURE-----




Reply sent to Taylan Kammer <taylan.kammer <at> gmail.com>:
You have taken responsibility. (Wed, 19 May 2021 11:53:01 GMT) Full text and rfc822 format available.

Notification sent to Jean Louis <bugs <at> gnu.support>:
bug acknowledged by developer. (Wed, 19 May 2021 11:53:01 GMT) Full text and rfc822 format available.

Message #16 received at 26221-done <at> debbugs.gnu.org (full text, mbox):

From: Taylan Kammer <taylan.kammer <at> gmail.com>
To: 26221-done <at> debbugs.gnu.org
Subject: (defun function nil ...) should work in 2.2
Date: Wed, 19 May 2021 13:52:25 +0200
Closing as it works in 3.0.

-- 
Taylan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 17 Jun 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.