StardustPL / Stardust

"A programming language that doesn't make me angry to use it."
https://StardustPL.GitHub.IO/
The Unlicense
4 stars 0 forks source link

Planning: const vs immutable #40

Open LB-- opened 8 years ago

LB-- commented 8 years ago

Const references don't require the referenced value to be immutable.

Once immutable, always immutable.

A const reference can be constructed from any object whether immutable or not.

LB-- commented 7 years ago

https://www.reddit.com/r/cpp/comments/5ipddb/more_const_fewer_bugs/dba2l89/

Perhaps allow moving values by removing them from scope.