Skip to content

Commit 83dcfc4

Browse files
authored
Reword desc of IO::Path.child
6.e is too much future-telling and we might not do the originally-planned ".child-secure" stuff anyway since it's not bulletproof and still has a race and we'll probably implement this feature through .open instead.
1 parent 2a3fe76 commit 83dcfc4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/Type/IO/Path.pod6

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,9 @@ Defined as:
151151
152152
method child(IO::Path:D: Str() $childname --> IO::Path:D)
153153
154-
Alias for L«C<.add>|/routine/add». B<NOTE:> C<.child> will be switched to
155-
secure version around 6.e release time, which will C<fail()> with non-child
156-
paths and is also slower, since it has to do more work. Use
157-
L«C<.add>|/routine/add» if your code does not need to guarantee the added
158-
path is in fact a child path.
154+
Alias for L«C<.add>|/routine/add». B<NOTE:> C<.child> exists largely for
155+
backwards-compatibility reasons and may become deprecated in future language
156+
versions. For any new code, please use L«C<.add>|/routine/add»
159157
160158
=head2 method cleanup
161159

0 commit comments

Comments
 (0)