in reply to Re^2: Writing general code: real world example - and doubts!
in thread Writing general code: real world example - and doubts!
I like very much your solution. In particular, it makes me reflect that an in-place detainting could be dangerous, because I could end up not knowing whether a variable has already been detainted or not. Your approach seems to divide variables into two groups: tainted and not, and this seems reasonable.
I only wonder how readability could be affected by this approach. The detainting method being under the surface, I fear that the naive programmer (er.. me) could be disorientated by seeing such an assignment and seeing $var used in potentially dieing places.
Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")
Don't fool yourself.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Writing general code: real world example - and doubts!
by Zaxo (Archbishop) on Apr 05, 2005 at 09:09 UTC |