Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Symbols #5

Closed
lilactown opened this issue Aug 13, 2022 · 4 comments
Closed

Symbols #5

lilactown opened this issue Aug 13, 2022 · 4 comments

Comments

@lilactown
Copy link
Collaborator

Should Clojure symbols map to Symbols, some custom type, or strings like keywords?

@borkdude
Copy link
Member

Not sure yet. Let's keep this open until we can make an informed decision.

@borkdude
Copy link
Member

In contrast to Clojure, Symbols in JS are identical (if created with /for and the same string). In Clojure, symbols are not interned and can care metadata. I think the are too different to map onto each other.

@lilactown
Copy link
Collaborator Author

@borkdude that's only if you use Symbol.for - if you use Symbol(string) it will return a new symbol value each time.

Perhaps we should wait until we figure out how we're going to handle metadata for objects and other types

@borkdude
Copy link
Member

Indeed! Perhaps we can implement metadata using the protocol which uses the Symbol like you suggested.

@squint-cljs squint-cljs locked and limited conversation to collaborators Aug 29, 2022
@borkdude borkdude converted this issue into discussion #177 Aug 29, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants