keid-lang / keid

Central repository for the Keid programming language
0 stars 1 forks source link

Add nondestructive mutation operator `with` for struct types #66

Open lucasbaizer2 opened 1 year ago

lucasbaizer2 commented 1 year ago

Struct types should be immutable, but it's often useful to create a new struct with modified values and reassign it. As syntactical sugar for performing this, the C#10-inspired with operator is required.