News for hackers. Stuff that matters.
Re:Noulith: A new programming language by the current Advent... by int_19h on Wednesday December 14, 2022 @09:17PM (#33994227)
It's a weird name for "readonly", not "immutable", as evidenced by this example:

   int x = 0;
   int const *px = &x;
   ++x; // *px changed
There's no way to indicate true immutability in C++, unfortunately. The language does decree that any object (which in C++ parlance includes ints etc) with a const type cannot be mutated without triggering UB; but there's no way to declare a pointer or reference that can only point to such objects.

There are no comments on this comment yet.