Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let-loop macro dead loop when providing zero arguments. #21

Open
tiancaiamao opened this issue Dec 16, 2023 · 1 comment
Open

let-loop macro dead loop when providing zero arguments. #21

tiancaiamao opened this issue Dec 16, 2023 · 1 comment

Comments

@tiancaiamao
Copy link
Owner

(@import "cora/lib/let-loop")

(let-loop never-reach ()
	  (if true
	      42
	      (never-reach)))

(never-reach)

Expect 42, but get dead loop.

(macroexpand '(let-loop never-reach ()
	       (if true
		   42
		   (never-reach))))  

((let #f62 (lambda (#meta61)
	     (let never-reach (#meta61 #meta61)
		  42))
      (#f62 #f62)))
(let-loop never-reach (ignore 0)
	       (if true
		   42
		   (never-reach ())))    ;;; get 42

(macroexpand '(let-loop never-reach (ignore 0)
	       (if true
		   42
		   (never-reach ()))))

((let #f66 (lambda (#meta65 ignore)
	     (let never-reach (#meta65 #meta65)
		  42))
      (#f66 #f66)) 0)
@zysaaa
Copy link

zysaaa commented Jun 13, 2024

貌似只能通过这种方式给你留言了,到时候会删除;

之前有在看你的博客(www.zenlife.tk),现在突然发现已经无法访问了,请问是不维护了吗 ~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants