Welcome Guest, Not a member yet? Register   Sign In
What is better when return false
#5

Yes that's what I do as well

if the success case would return an array then i would return an empty array
if success would return a string then an empty return string

That way the return value is consistent
On the package it said needs Windows 7 or better. So I installed Linux.
Reply


Messages In This Thread
RE: What is better when return false - by rtenny - 06-30-2017, 07:08 AM
RE: What is better when return false - by SomeGuy - 04-06-2018, 12:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB