Skip to content

Commit

Permalink
Some reflow and rephrasing following @b2gills' advice
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed May 31, 2018
1 parent 7d8b76a commit 9f2cdfe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions doc/Language/glossary.pod6
Expand Up @@ -886,15 +886,15 @@ B<o>f B<a>ll B<s>pec B<t>ests.
X<|role>
=head1 Roles
Roles, mix-ins or traits define interfaces and/or implementation of
those interfaces as well as instance variables using them, and are
mixed-in when declaring classes that follow that interface. L<Abstract
classes|#Abstract Class> are particular examples of Roles where the
actual implementation is deferred to the class that uses that Role.
Roles are part of Perl6's L<object system|/language/objects>, and are
declared using the keyword L<role|/syntax/role> and used in class
declaration via L<does|/routine/does>.
Roles, mix-ins or traits define interfaces and/or implementation of those
interfaces as well as instance variables using them, and are mixed-in when
declaring classes that follow that interface. L<Abstract classes|#Abstract
Class> are particular examples of Roles where the actual implementation is
deferred to the class that uses that Role.
Roles are part of Perl6's L<object system|/language/objects>, and are declared
using the keyword L<role|/syntax/role> and used in class declaration via
L<does|/routine/does>.
X<|rule>
=head1 rule
Expand Down
10 changes: 5 additions & 5 deletions doc/Language/iterating.pod6
Expand Up @@ -129,11 +129,11 @@ L<repeat|/language/control#repeat/while,_repeat/until> and
L<while|/language/control#while,_until> loops are also possible.
However, in general, they are discouraged. Perl 6 is a functional and concurrent
language. In general, you should look at loops in a functional way: processing,
one by one, the items produced by an interator, that is, feeding an item to a
block without any kind of secondary effects. This functional view allows also
easy parallelization of the operation via the L<C<hyper>|/routine/hyper> or
L<C<race>|/routine/race> auto-threading methods.
language; when coding in Perl 6, you should look at loops in a functional way:
processing, one by one, the items produced by an interator, that is, feeding an
item to a block without any kind of secondary effects. This functional view
allows also easy parallelization of the operation via the
L<C<hyper>|/routine/hyper> or L<C<race>|/routine/race> auto-threading methods.
If you feel more comfortable with your good old loops, the language allows you
to use them. However, it is considered more I<p6y> to try and use, whenever
Expand Down

0 comments on commit 9f2cdfe

Please sign in to comment.