News for hackers. Stuff that matters.
Re:What's wrong with Object-Oriented Programming and Functio... by Roboprog on Tuesday November 12, 2013 @10:59AM (#6718495)
Indeed, many languages would benefit simply from having modifiers that reverse the typical use of "const". Make everything immutable / side-effect-free by default, and add a "mother may I" keyword that allows mutation / side-effects without giving a compile error.

Hopefully, programmers would learn to avoid writing code that requires the "stomps-all-over-shit" keyword except when they really did need it. (assuming tail call elimination for simple loops)

Re:What's wrong with Object-Oriented Programming and Functio... by afiler on Tuesday November 12, 2013 @03:29PM (#6720751)
One of D's improvements upon C/C++ is its ability to enforce "deep const-ness".