conditional or functional watches?

Sometimes I change variable names in different scopes. It occurred to me that it might be useful to have conditional or function-based watch variable. i.e. in one scope (inside a function call) I refer to an array as $result, but outside the function call I assign it to a variable $data. It would be nice to -- instead of adding two separate watches, one each for $result and $data respectively -- to use a formulaic reference such as $result || $data or something like ($result) ? $result : $data (trinary reference) or even if($result) $result else $data;

0

Please sign in to leave a comment.