Skip to content

Commit f72a3e9

Browse files
authored
Merge pull request #3305 from Kaiepi/glossary-type-smileys
Add type smiley to the glossary
2 parents 4d7c12f + c6d4618 commit f72a3e9

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

doc/Language/glossary.pod6

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ value of a call to a method called C<new>, or a literal.
378378
Instances of most types are defined to be C<True> e.g.,
379379
C<defined($instance)> is C<True>.
380380
381-
my Str $str = "hello"; ## this is with builtin types, e.g. Str
381+
my Str $str = "hello"; ## this is with built-in types, e.g. Str
382382
if defined($str) {
383383
say "Oh, yeah. I'm defined.";
384384
}
@@ -1152,6 +1152,17 @@ is an object that is used to represent a type or a class. Since in
11521152
object oriented programming everything is an object, classes are
11531153
objects too, and they inherit from L<Mu|/type/Mu>.
11541154
1155+
=head1 Type smiley
1156+
1157+
A
1158+
L<type smiley|/type/Signature#Constraining_argument_definiteness>
1159+
is a suffix a type may have that indicates the definiteness of values
1160+
that can typecheck against it. This may be C<:D> to indicate that only
1161+
defined values can typecheck (i.e. instances), C<:U> to indicate that only
1162+
undefined values can typecheck (i.e. type objects), or C<:_> to indicate
1163+
that both defined and undefined values can typecheck. These resemble
1164+
emoticons, thus the name.
1165+
11551166
=head1 value
11561167
X<|value>
11571168

xt/words.pws

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ hamza
499499
hardcoded
500500
hartl
501501
hashref
502+
haskell
502503
haskelly
503504
heredoc
504505
heredocs
@@ -572,6 +573,7 @@ invocant's
572573
invocantmarker
573574
invocants
574575
invocationprotocol
576+
irc
575577
isa
576578
isengard
577579
ish
@@ -847,6 +849,7 @@ oneline
847849
oo
848850
oop
849851
opaquepointer
852+
opcode
850853
openbsd
851854
opendir
852855
openforwriting
@@ -1054,7 +1057,10 @@ reentrant
10541057
regex
10551058
regexes
10561059
reification
1060+
reified
10571061
reifier
1062+
reifies
1063+
reify
10581064
reini
10591065
renderer
10601066
renderers

0 commit comments

Comments
 (0)