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

Add logical AND-assignment and logical OR-Assignment #23738

Closed
wants to merge 3 commits into from

Conversation

@Araq
Copy link
Member

Araq commented Jun 19, 2024

Why? Nim programmers should write Nim code that we compile to JS, not JS code.

@juancarlospaco
Copy link
Collaborator Author

juancarlospaco commented Jun 19, 2024

For interop purposes with the browser, it is useful for big heavy objects.
I mean there's emit for C targets and people don't go emit'ing whole modules.

@juancarlospaco
Copy link
Collaborator Author

@Araq Would you prefer to use a name like andAssign instead of &&= ? 🤔

@Araq
Copy link
Member

Araq commented Jun 27, 2024

No, I don't get the point at all, it's not about the name. Javascript uses + for string concats, should we also import its plus operator then? It just makes no sense...

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

Successfully merging this pull request may close these issues.

None yet

2 participants