Avoid returning null for collections in #csharp! This removes the need for null checks in the code that consumes the call.
Return the type IReadOnlyList<T> to work only on the content and return Array.Empty<T> to not allocate memory.#UnityTips #GodotTips #indiedev pic.twitter.com/Glannwg3BX
— Binary Impact (@BinaryImpactG) February 13, 2024