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

Promise like object created in Scheme don't work as quoted promise #139

Closed
2 tasks done
jcubic opened this issue Mar 11, 2021 · 1 comment
Closed
2 tasks done

Promise like object created in Scheme don't work as quoted promise #139

jcubic opened this issue Mar 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jcubic
Copy link
Collaborator

jcubic commented Mar 11, 2021

Here is the issue:

(object :then (lambda () 10))
;; => 10
(dir '>(object :then (lambda () 10)))
Error: Cannot read property 'then' of undefined
  • fix issue
  • write unit tests
@jcubic jcubic added the bug Something isn't working label Mar 11, 2021
jcubic added a commit that referenced this issue Mar 11, 2021
@jcubic
Copy link
Collaborator Author

jcubic commented Mar 11, 2021

The problem was that object is complex macro and it return promise that resolve to code that need to be evaluated. When promise is not quoted this is done automatically (that's why quotation is needed for list as data).

@jcubic jcubic closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant