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
Simplify mix require #4283
Simplify mix require #4283
Conversation
Note that I left your dang `const` as it is, even though it's stupid. `let` for life. 💃💃💃💃
Yo I'mma |
Thanks <3 |
@taylorotwell i think const is better solution than let becuse require is immutable.. perhaps... |
const doesn't mean immutable. None of this matters even remotely.
…On Tue, Jul 18, 2017 at 7:32 PM grigoris ***@***.***> wrote:
@taylorotwell <https://github.com/taylorotwell> i think const is better
solution than let becuse require is immutable.. perhaps...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4283 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AALLt5jOrvWmq9laK2qmO12ffQ1gYTCeks5sPUCZgaJpZM4NtS7M>
.
|
|
constant cannot change through re-assignment, and it can't be redeclared... i have saw over 10 tutorial for js framework and all developer uses const in require statement |
I don't like https://www.dropbox.com/s/gnrz1r4nu0nkg5b/Screenshot%202017-07-19%2011.52.55.png?dl=0 It makes zero difference in this file. |
However, it does not allow the rebinding of that variable. Whereas let does. The question here is "Does mix ever need to be rebound?" |
I do agree with you @JeffreyWay but |
I think "slight immutability" is an oxymoron. :) I use |
I think const should be default if no rebinding if needed. And aside from that, It's good to get into a habit of using the most appropriate variable keyword, more importantly, distinguishing the two. |
I think bike-shedding is not really ideal, and if you don't want to use |
Note that I left your dang
const
as it is, even though it's stupid.let
for life. 💃💃💃💃