Click here to Skip to main content
15,891,828 members
Articles / Web Development / HTML

Is it Really Better to 'Return an Empty List Instead of null'? / Part 4

Rate me:
Please Sign up or sign in to vote.
4.65/5 (14 votes)
30 Oct 2014LGPL337 min read 35.3K   251   16  
This article series aims to answer the question: Should we return an empty list or 'null' from functions?

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer
Luxembourg Luxembourg
Curious programmer. Zealous simplifier. Lifelong student of life.
I care about creating software that is easy to use, reliable, and maintainable.
https://www.cnpp.dev

Comments and Discussions