Click here to Skip to main content
15,887,585 members
Articles / Web Development / HTML

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

Rate me:
Please Sign up or sign in to vote.
4.85/5 (47 votes)
17 Dec 2014LGPL313 min read 416.7K   51  
This article aims to answer the question: Should we return an empty list or 'null' from functions?

Views

Daily Counts

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