On 28.08.2018 03:11, Walter Bright wrote:
On 8/27/2018 10:08 AM, H. S. Teoh wrote:
Const in D makes sense as-is.  Though, granted, its infectiousness means
its scope is actually very narrow, and as a result, we ironically can't
use it in very many places, and so its touted benefits only rarely
apply. :-(  Which also means that it's taking up a lot of language
design real estate with not many benefits to show for it.

D const is of great utility if you're interested in functional programming.

D const/immutable is stronger than immutability in Haskell (which is usually _lazy_).

Reply via email to