Skip to content

Commit d17265e

Browse files
committed
perlclass.pod - remove mention of :writer from the TODO section
As noted earlier in the file, it has been implemented and there don't seem to be any breaking changes planned to it. Since constraints are being looked at, this commit adds mention of those instead.
1 parent 201ee5d commit d17265e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pod/perlclass.pod

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -401,21 +401,9 @@ mechanism that makes all field initializer expressions appear within the same
401401
CV on ADJUST blocks as well, merging them all into a single CV per class. This
402402
will make it faster to invoke if a class has more than one of them.
403403

404-
=item * More accessor generator attributes
404+
=item * Constraint checks
405405

406-
Attributes to request that other kinds of accessor methods be generated for
407-
fields. Likely C<:writer>.
408-
409-
class X {
410-
field $name :writer;
411-
}
412-
413-
Equivalent to
414-
415-
class X {
416-
field $name;
417-
method set_name ($new) { $name = $new; return $self; }
418-
}
406+
Some syntax for declaring and perhaps enforcing interface declarations.
419407

420408
=item * Metaprogramming
421409

0 commit comments

Comments
 (0)