Gabriel and grable: I'm already using null and an IF statement in that manner. There's a slight hit in performance and while it's not that big of a hit, I think being able to put self as a default would speed it up and be worth it.
If I can find someway to be able to make a default the self then I can eliminate the IF statement.
EDIT: H&K: I've already been doing what Gabriel posted since the beginning. And yes, according to the docs a default has to be a constant.
But since it has to be a constant I guess this is a dead issue unless there's some undocumented magic way to do it.
If I can find someway to be able to make a default the self then I can eliminate the IF statement.
EDIT: H&K: I've already been doing what Gabriel posted since the beginning. And yes, according to the docs a default has to be a constant.
But since it has to be a constant I guess this is a dead issue unless there's some undocumented magic way to do it.