Quote:
Originally Posted by salesman
Graal just treats undefined variables as null, so why not just do something like this?
PHP Code:
function argumentTest(temp.foobar, temp.barfoo) { temp.barfoo = temp.barfoo == null ? true : temp.barfoo; // ... }
|
Because of convenience mainly, just like most of the other suggestions posted here.