Skip to content

keyboard applet: Change 'let' to 'const' where possible#10167

Merged
clefebvre merged 1 commit intolinuxmint:masterfrom
AxXxB:keyboard-applet-let-to-const
Nov 8, 2021
Merged

keyboard applet: Change 'let' to 'const' where possible#10167
clefebvre merged 1 commit intolinuxmint:masterfrom
AxXxB:keyboard-applet-let-to-const

Conversation

@AxXxB
Copy link
Copy Markdown
Contributor

@AxXxB AxXxB commented Jun 18, 2021

const is a constraint that will not let a programmer to try to change its value when there is no need for it. It's a good practice in JS now (and even in C as well as in other languages where it's available). Moreover, JS JIT possibly can make better native code with const variable because he know that its type will never change.

Keyboard applet is a good point to start using it because the code is small enough =)

@clefebvre clefebvre merged commit 5e20fd9 into linuxmint:master Nov 8, 2021
@AxXxB AxXxB deleted the keyboard-applet-let-to-const branch November 11, 2021 17:52
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.

2 participants