Does Perl 6 have taint mode?

Perl 5 supports taint mode with the -T switch. The script will internally mark any value that is retrieved from a source external to the script as corrupted, which should be unoccupied. Does Perl 6 support this?

+4
source share
2 answers

No.

This feature is briefly mentioned in design documents . The introduction of taint trait is supposed .

You can see Larry Wall's latest comments on this (and any other topic) by looking at # perl6 magazines. TimToady's 'taint' mentions show "we have no tainting mechanism but to prevent abuse" in December.

+5
source

Perl 5 will mark the Scalar container as infected, and this stain may or may not spill into other containers. The reason it doesn't stick to values ​​placed in arrays is because Perl 5 uses the same arrays to store its own data. Achieving performance would be great for corrupted mode to work correctly.

, , , Dodo. . . Camelia, .

0

All Articles