Closed adamchalmers closed 1 month ago
@jessfraz @Irev-Dev @franknoirot @jgomez720 thoughts?
we have let fwiw so this would be deleting const, we also have var
im fine with it , lots of tests would need to be updated
and the tests in the cli repo
Hmm are there differences between let const and var right now? I didn't think we had variable mutation.
Nope which is why I’m okay w removing const since if we want an immutable var in the future we won’t break anyone by actually making that true On Sep 11, 2023, at 19:39, Adam Chalmers @.***> wrote: Hmm are there differences between let const and var right now?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Going through my notifications. I'm sure you all talked about this enough, but I have no preference on const, let, var, etc.
Problem
'const' is just a weird phrase to anyone who's not a programmer. KCL doesn't have mutable bindings so we don't need a special "const" keyword to distinguish from "let".
Solution
Rename the "const" keyword to "let".