Skip to content

Commit b8106c9

Browse files
committed
Add some spec for "is DEPRECATED"
1 parent c251a84 commit b8106c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

S02-bits.pod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4956,4 +4956,15 @@ The STD::Regex grammar also adds these:
49564956
mod_internal:sym<P5> m:/ ... :P5 ... /
49574957
quantifier:sym<*> /.*/
49584958

4959+
=head1 Deprecations
4960+
4961+
A language that doesn't evolve, is a dead language. Constructs that
4962+
seem like a good idea now, may turn out not to be such a good idea in the
4963+
future. Such constructs will thus need to be deprecated. To mark a construct
4964+
as being deprecated, one can add the "is DEPRECATED($alternative)" trait to
4965+
a class, an attribute, or a sub / method. During execution, this will cause
4966+
the caller sites to be recorded without any warnings. When execution finishes,
4967+
a report should be printed to STDERR stating which deprecated features where
4968+
called where.
4969+
49594970
=for vim:set expandtab sw=4:

0 commit comments

Comments
 (0)