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

Should we have lets? #37

Closed
andymcn opened this issue Sep 19, 2014 · 2 comments
Closed

Should we have lets? #37

andymcn opened this issue Sep 19, 2014 · 2 comments

Comments

@andymcn
Copy link
Contributor

andymcn commented Sep 19, 2014

We currently have var and let variables and fields, the only difference being that once setup a let cannot be reassigned to. This gives a small amount of extra type checking, if the programmer chooses to use it.

Is this worth having or should we remove it?

Personally I'm currently thinking no.

@sblessing
Copy link
Contributor

I am sure that there could be some optimizations being made if there would be let-fields. From a programmers perspective, I would say its unnecessary and therefore I am personally currently your opinion!!

@sylvanc
Copy link
Contributor

sylvanc commented Oct 23, 2014

These turn out to be very useful to the programmer, allow certain optimisations, and are particularly useful for certain forms of publicly accessible fields. We'll keep let.

@sylvanc sylvanc closed this as completed Oct 23, 2014
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

3 participants