Skip to content

Commit 678761e

Browse files
committed
docs: remove bareword example, b/c that's NOT in scope of this PPC
1 parent 7b6e90f commit 678761e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ppcs/ppc0021-optional-chaining-operator.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,6 @@ Expected common uses:
188188

189189
# my $class = 'SomeClass'; $class->new if defined $class;
190190
my $class = 'SomeClass'; $class?->new;
191-
192-
# my $obj = %SomeClass:: ? SomeClass->new : ();
193-
my $obj = SomeClass?->new; # TBD: see 'Future Scope' below.
194-
195-
# my @objs = (%NotValid:: ? NotValid->new : (), %Valid:: ? Valid->new : ());
196-
my @objs = ( NotValid?->new, Valid?->new ); # @objs == ( ValidObject )
197191
```
198192

199193
Unusual and edge cases, for comprehension:

0 commit comments

Comments
 (0)