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

Remove let expressions support #923

Open
p-bakker opened this issue Jun 4, 2021 · 4 comments
Open

Remove let expressions support #923

p-bakker opened this issue Jun 4, 2021 · 4 comments
Labels

Comments

@p-bakker
Copy link
Collaborator

p-bakker commented Jun 4, 2021

Looks like the let implementation supports let expressions, something from ES4 that never made it.

See:

OK with tossing it out?

@tonygermano
Copy link
Contributor

General advice tends to be to not remove things that work, because you never know who might be using it. I could see excluding it from language version 200+.

@gbrail
Copy link
Collaborator

gbrail commented Jun 4, 2021 via email

@p-bakker
Copy link
Collaborator Author

p-bakker commented Jun 5, 2021

Think it's doable to just disable this when the language version is >= 200, but...

The reason I came across this was that I was looking to see what it would take to make the const (more) standard compliant, by basically make it use the same logic as the let implementation, but then I saw that the let implementation had all this extra code for a one-time draft feature that never made it into the spec (but I'm sure it can be achieved with some conditions here and there)

But it does being up the question how to do a standard compliant const implementation or any fix for that matter that corrects non-standard behavior, with a behavior change as a result. Should as such fixes be tied to a specific language feature?

If you look at #326 and it's linked cases, fixes for all of them would constitute behavior changes, from non-standard, to standard-compliant behavior

@p-bakker
Copy link
Collaborator Author

p-bakker commented Jun 5, 2021

Also see @rbri's comment: #326 (comment)

@p-bakker p-bakker added the Ecma Incompatibility Issues about Rhino being incompatible with the EcmaScript spec label Jun 30, 2021
@p-bakker p-bakker added non-Ecma and removed Ecma Incompatibility Issues about Rhino being incompatible with the EcmaScript spec labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants