unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#26221: (defun function nil should work in 2.2
@ 2017-03-22 21:48 Jean Louis
  2017-03-23 19:59 ` bug#26221: (define " Joshua Branson
  2021-05-19 11:52 ` bug#26221: (defun function nil ...) " Taylan Kammer
  0 siblings, 2 replies; 4+ messages in thread
From: Jean Louis @ 2017-03-22 21:48 UTC (permalink / raw)
  To: 26221

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





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

* bug#26221: (define function nil should work in 2.2
  2017-03-22 21:48 bug#26221: (defun function nil should work in 2.2 Jean Louis
@ 2017-03-23 19:59 ` Joshua Branson
  2017-03-24  9:19   ` tomas
  2021-05-19 11:52 ` bug#26221: (defun function nil ...) " Taylan Kammer
  1 sibling, 1 reply; 4+ messages in thread
From: Joshua Branson @ 2017-03-23 19:59 UTC (permalink / raw)
  To: 26221


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.

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

* bug#26221: (define function nil should work in 2.2
  2017-03-23 19:59 ` bug#26221: (define " Joshua Branson
@ 2017-03-24  9:19   ` tomas
  0 siblings, 0 replies; 4+ messages in thread
From: tomas @ 2017-03-24  9:19 UTC (permalink / raw)
  To: 26221

-----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-----





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

* bug#26221: (defun function nil ...) should work in 2.2
  2017-03-22 21:48 bug#26221: (defun function nil should work in 2.2 Jean Louis
  2017-03-23 19:59 ` bug#26221: (define " Joshua Branson
@ 2021-05-19 11:52 ` Taylan Kammer
  1 sibling, 0 replies; 4+ messages in thread
From: Taylan Kammer @ 2021-05-19 11:52 UTC (permalink / raw)
  To: 26221-done

Closing as it works in 3.0.

-- 
Taylan





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

end of thread, other threads:[~2021-05-19 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-22 21:48 bug#26221: (defun function nil should work in 2.2 Jean Louis
2017-03-23 19:59 ` bug#26221: (define " Joshua Branson
2017-03-24  9:19   ` tomas
2021-05-19 11:52 ` bug#26221: (defun function nil ...) " Taylan Kammer

unofficial mirror of bug-guile@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guile-bugs/0 guile-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-bugs guile-bugs/ https://yhetil.org/guile-bugs \
		bug-guile@gnu.org
	public-inbox-index guile-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.lisp.guile.bugs
	nntp://news.gmane.io/gmane.lisp.guile.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git