Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Expand allomorph glossary
- Explain more what "two values" means
- Mention that Setties and Baggies care about object identity
  • Loading branch information
zoffixznet committed Nov 27, 2016
1 parent 15aff17 commit 82f7e01
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/Language/glossary.pod6
Expand Up @@ -72,7 +72,14 @@ Also see L<#Adverb> and L<#Colon Pair and Colon List>.
X<|Allomorph>
A type that has two related values which may be used depending on the
context. The I<allomorph> types L<IntStr|/type/IntStr>, L<NumStr|/type/NumStr>,
context. For example L<IntStr|/type/IntStr> allomorph C<is> both
an L<Int|/type/Int> and a L<Str|/type/Str>, so it will be accepted by
anything that expects an C<Int>, a C<Str>, or an C<IntStr>. Keep in mind
that certain constructs, such as L<sets, bags, and mixes|/language/setbagmix>
care about object identity, and so will not accept an allomorph as equivalent
of its components alone.
The I<allomorph> types L<IntStr|/type/IntStr>, L<NumStr|/type/NumStr>,
L<RatStr|/type/RatStr> and L<ComplexStr|/type/ComplexStr> may be created
as a result of parsing a quoted string:
Expand Down

0 comments on commit 82f7e01

Please sign in to comment.