markfinal / BuildAMation

Build system and project generator for C/C++ desktop software development. Uses C# for build scripts. It is no longer under active development.
http://buildamation.com
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Immutable function returns over collections #591

Open markfinal opened 4 years ago

markfinal commented 4 years ago

This is for the next major/minor upgrade. But functions that return lists, if they are really just to iterate over, and not mutate, should be as fast as possible, and indicate immutability.

For example, https://stackoverflow.com/questions/24880268/ienumerable-vs-ireadonlycollection-vs-readonlycollection-for-exposing-a-list-mem/24881237.

markfinal commented 4 years ago

Is this still valid? A lot of thing changed to IEnumerable<> in 2.0