File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ Calculating 43th prime
165
165
191
166
166
= end code
167
167
168
+ Marks something as I < deprecated >
169
+
168
170
= head2 trait is pure
169
171
170
172
multi sub trait_mod:<is>(Routine $r, :$pure!)
@@ -284,7 +286,14 @@ for more details.
284
286
285
287
multi sub trait_mod:<is>(Routine:D $r, :$DEPRECATED!)
286
288
287
- Marks a routine as deprecated, optionally with a message what to use instead.
289
+ Marks a C < Routine > as deprecated; that is, it should no longer be used going forward,
290
+ and will eventually be removed. An optional message specifying the replacement
291
+ functionality can be specified
292
+
293
+ By having both the original (deprecated) and new C < Routine > available simultaneously,
294
+ you can avoid a breaking change in a single release, by allowing users time and instructions
295
+ on how to update their code. Remove the deprecated verison only after at least
296
+ one release that includes both the warning and the new C < Routine > .
288
297
289
298
This code
290
299
You can’t perform that action at this time.
0 commit comments