View Single Post
  #3  
Old 10-04-2011, 05:18 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by salesman View Post
Graal just treats undefined variables as null, so why not just do something like this?
PHP Code:
function argumentTest(temp.foobartemp.barfoo) {
  
temp.barfoo temp.barfoo == null true temp.barfoo;
  
// ...

Because of convenience mainly, just like most of the other suggestions posted here.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote