Closed Corniel closed 8 months ago
@Corniel would you leave EnvironmentVariables immutable?
Currently they are mutable to, if I'm not mistaken?!
Yes, it is currently mutable, when I commented I was thinking if it would make sense to leave it immutable, but I understand that it makes sense.
I would like to change the data structures that are part of Buildalyzer's API to be Immutable. As part of that, data structures that should be equal by value like
EnvironmentOptions
should become records. For collections,IReadOnlyCollection<T>
andIReadOnlyDictionary<TKey, TValue>
should be used.For
EnvironmentOptions
that should look something like this: