First Draft: Static Single Assignment

Walter Bright newshound2 at digitalmars.com
Wed Dec 3 08:34:23 UTC 2025


On 11/27/2025 2:14 PM, Peter C wrote:
> Compound assignment on a primitive type suggests an intention to mutate, not 
> reassign. So to maintain conceptual consistency, compound assignments should 
> also be allowed on 'final' primitive types.

I agree with everything you wrote except that(!) I don't see a reason to accept 
compound assignment with a `final` variable.



More information about the dip.development mailing list