Is it not redundant to use final let as let is already a constant and can not be modified? In which cases is that useful?
It means the variable won't be dynamically dispatched, which can improve performance.
However, if you declare your class final, it's redundant to declare the individual variables/members of that class final.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With