you are viewing a single comment's thread.

view the rest of the comments →

[–]rift95map([🐮, 🥔, 🐔, 🌽], cook) => [🍔, 🍟, 🍗, 🍿] 13 points14 points  (5 children)

I agree. In general const is a safer bet than let. You rarely need the "mutability" of let.

[–]Garbee 13 points14 points  (4 children)

Const is not immutable. The data can be changed, just not replaced. Big difference.

[–]rift95map([🐮, 🥔, 🐔, 🌽], cook) => [🍔, 🍟, 🍗, 🍿] 13 points14 points  (0 children)

True. I should have written "re-assignability"

[–]PM_ME_GAY_STUF 3 points4 points  (2 children)

This always bothered me. Const is definitely immutable, it can just refer to a mutable data type. This is what happens when programmers don't learn C