When you have optional arguments that can have different types, which value is most suited to point out that the argument should not be taken into consideration? False or Null?
When you have optional arguments that can have different types, which value is most
Share
For me this depends on what I’m going to do with the value of said argument…
I am writing a database function where I can have default values as NULL
If these values are null my function may insert a blank record..
If I need to stop my function because of a non argument I may use FALSE
So I am saying that both are totally valid, but it depends on the situation you find yourself in.