Skip to content

Commit 2819f25

Browse files
committed
Add stubs for stuff inside the glossary already
1 parent 87ae1b7 commit 2819f25

File tree

1 file changed

+87
-13
lines changed

1 file changed

+87
-13
lines changed

doc/Language/glossary.pod

Lines changed: 87 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ L<junctions|#Junction>. C<Any> itself derives from L<#Mu>.
9292
=head1 any()
9393
9494
A function generating a L<junction|#Junction> with "or" semantics (aka,
95-
L<#True> if any of its values are C<True>.
95+
L<#True> if any of its values are C<True>. See also L<any|/routine/any>.
9696
9797
=head1 API
9898
@@ -157,9 +157,9 @@ L<class|#Class>:
157157
158158
=head1 Autothreading
159159
160-
Autothreading is what happens if you pass a L<Junction|/type/Junction> to
161-
a subroutine that expects a parameter of type C<Any> or a subtype thereof
162-
(such as anything L<Cool|/type/Cool>). The call is then executed for each
160+
Autothreading is what happens if you pass a L<Junction|#Junction> to
161+
a subroutine that expects a parameter of type L<#Any> or a subtype thereof
162+
(such as anything L<#Cool>). The call is then executed for each
163163
value of the junction. The result of these calls is assembled in a new
164164
junction of the same type as the original junction.
165165
@@ -182,6 +182,14 @@ values in the junction are True.
182182
say 'success';
183183
}
184184
185+
=head1 Callable
186+
187+
=head1 Camelia
188+
189+
=head1 camelia
190+
191+
=head1 Class
192+
185193
=head1 Colon Pair and Colon List
186194
187195
A colon pair is a shorthand syntax used to create or visually present
@@ -231,18 +239,30 @@ referred to as a "type constraint."
231239
Note that you can elso differentiate candidates in a
232240
L<multi-dispatch|#Multi-Dispatch> by using a different constraint:
233241
234-
multi sub abbreviate(Str $thing where { .chars >= 10 }) {
235-
"$thing.substr(0,10)..."
242+
multi sub abbreviate(Str $thing where { .chars > 10 }) {
243+
"$thing.substr(0,7)..."
236244
}
237245
multi sub abbreviate(Str $thing) { $thing } # no constraint
238246
239-
say abbreviate("Worthington"; # Worthingto...
247+
say abbreviate("Worthington"; # Worthin...
240248
say abbreviate("Mäsak"); # Mäsak
241249
250+
=head1 Cool
251+
252+
=head1 dalek
253+
254+
=head1 Enum
255+
256+
=head1 Exegesis
257+
258+
=head1 False
259+
242260
=head1 Field
243261
244262
See L<#Attribute>.
245263
264+
=head1 Grammar
265+
246266
=head1 Instance
247267
248268
An I<instance> of a class is also called an I<object> in some other
@@ -271,6 +291,8 @@ C<defined($instance)> is C<True>.
271291
To put things another way, a class contains the blueprints of methods and
272292
attributes, and an instance carries it into the real world.
273293
294+
=head1 Interface
295+
274296
=head1 IRC
275297
276298
Internet Relay Chat. Perl 6 developers and users usually hang out on the
@@ -409,7 +431,7 @@ No Such Thing
409431
410432
=head2 Opt
411433
412-
Short for "optimization", usually in either the context of L<#spesh> or
434+
Short for "optimization", usually in either the context of L<spesh|#Spesh> or
413435
L<#JIT>.
414436
415437
=head2 PB
@@ -487,6 +509,12 @@ in Perl 6. It is what C<self> refers to in a method.
487509
class A { method show { self } }
488510
say A.new.show; # A.new
489511
512+
=head2 JIT
513+
514+
=head1 Junction
515+
516+
=head1 List
517+
490518
=head1 Literal
491519
492520
A I<literal> is a piece of code that directly stands for an (often built-in)
@@ -536,14 +564,24 @@ The C<mainline> is the program text that is not part of any kind of block.
536564
f(); # in mainline again
537565
538566
You can also have the mainline of any package-like declarator, such as
539-
C<class>, C<module>, C<grammar>, etc. These are typically run just after
540-
the class/module/grammar have been compiled (or when loaded from a
541-
pre-compiled file).
567+
L<class|#class>, L<module|#Module>, L<grammar|#Grammar>, etc. These are
568+
typically run just after the class/module/grammar have been compiled (or
569+
when loaded from a pre-compiled file).
542570
543571
=head1 Member
544572
545573
See L<#Attribute>.
546574
575+
=head1 Method
576+
577+
=head1 Module
578+
579+
=head1 Mu
580+
581+
=head1 Multi-Dispatch
582+
583+
=head1 Package
584+
547585
=head1 Parameter
548586
549587
L<Parameter|/type/Parameter> is a class to define parameters to
@@ -558,6 +596,17 @@ you specify when calling a subroutine/method/callable block.
558596
559597
See L<#Attribute>.
560598
599+
=head1 Rakudo
600+
601+
=head1 Role
602+
603+
=head1 rvalue
604+
605+
A value that can be used on the right hand side of an assignment. See also
606+
L<#lvalue>.
607+
608+
=head1 Sigil
609+
561610
=head1 Slot
562611
563612
See L<#Attribute>.
@@ -577,10 +626,25 @@ This can also be used to collect all possible named parameters in a call:
577626
sub allnameds(*%named) { .say for %named.sort }
578627
allnameds a => 42, :666b, :c<foo>; # a => 42, b => 666, c => foo
579628
629+
=head1 Spesh
630+
631+
=head1 Stub
632+
633+
=head1 Subroutine
634+
635+
=head1 Synopsis
636+
637+
=head1 TimToady
638+
639+
=head1 True
640+
641+
=head1 Twigil
642+
580643
=head1 Type Object
581644
582-
A I<type object> is an object representing a class, role, package, grammar
583-
or enum. It is generally accessible with the same name as the type.
645+
A I<type object> is an object representing a L<class|#Class>, L<role|#Role>,
646+
L<package|#Package>, L<grammar|#Grammar> or L<enum|#Enum>. It is generally
647+
accessible with the same name as the type.
584648
585649
class A { };
586650
say A; # A is the type object
@@ -603,4 +667,14 @@ languages:
603667
# perl6 -e 'my Int $a; sub f(Int $x) { $x + 1 }; f($a);'
604668
Invocant requires an instance, but a type object was passed
605669
670+
=head1 yoleaux
671+
672+
=head1 $
673+
674+
=head1 @
675+
676+
=head1 %
677+
678+
=head1 &
679+
606680
=end pod

0 commit comments

Comments
 (0)