What is the point of const?

What is the point of const?

Attached: 1555096141115.jpg (700x400, 150K)

you can't accidentally change the value and the compiler can optimize it better

>compiler can optimize it better
How true is that on a scale from false to true

The point is to communicate to the person reading the code that the value isn't supposed to change.

It's useful for manipulating higher order functions.
x >> y = x >>= \_ -> y

It's false. In C++ you literally have a keyword to break the promise (mutable), and in C you can just cast it away.
The point of const is code readability and maintainability.

Completely false current year. Maybe true in 1980. Gcc and clang do whatever the fuck they want to your code.

This. Its an enforcement/communication feature. It warns you if you try and violate it.

>haskell fag
How is unemployment going?

Very well thankyou user

In embedded systems you can have const placed in ROM.