yiisoft / docs

Various Yii 3.0 related documentation
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
233 stars 70 forks source link

Explain the concept of immutability #81

Open samdark opened 3 years ago

samdark commented 3 years ago

See https://github.com/yiisoft/factory/issues/60

mikehaertl commented 3 years ago

Apart from the concept this should also include a clear guideline where to use it and where not. Also a couple of real world examples and use cases from inside the framework would surely help.

I remember seeing some places where it's used in yii3 - and others where it's not used but couldn't figure any difference in the context (can try to come up with examples). Is it possible that the new packages are not coherent in their use of immutability yet?

samdark commented 3 years ago

Is it possible that the new packages are not coherent in their use of immutability yet?

Yes.