Echo JS 0.11.0

<~>
amitport 2432 days ago. link parent 1 point
I'm pretty sure he understands the difference... he's just saying that if it doesn't make the object immutable then it is not that useful.

(I disagree with him. I think minimal variables reassigning makes code easier to understand and 'const' helps to encourage that)

Replies

pselviakcay 2432 days ago. link 2 points
But he thinks that is not intuitive. It is intuitive as f**k is all I'm saying. It sounds ridiculous when you make something that fundamental as a base for your rant.

"So you wake up every day and think that you can go on forever? NOPE! We all die in the end! F* that sh**!!"
jaleksic 2432 days ago. link -1 point
Well const does not make objects immutable, only primitive values. It's that easy ^^
timoxley 2432 days ago. link 2 points
more accurately, only the reference is immutable. Nothing special happens that changes how const works with primitives vs objects.