Skip to content

Commit 01e8a77

Browse files
committed
Rephrases routine def
Explanation in the #perl6 channel log http://colabti.org/irclogger/irclogger_log/perl6?date=2018-07-11#l182
1 parent 64d8419 commit 01e8a77

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/Language/functions.pod6

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
55
=SUBTITLE Functions and functional programming in Perl 6
66
7-
Routines are the smallest means of code reuse in Perl 6. They come in several
8-
forms, most notably L<methods|/type/Method>, which belong in classes and roles
9-
and are associated with an object; and functions (also called I<subroutines> or
10-
L<sub|/type/Sub>s, for short), which can be called independently of objects.
7+
Routines are one of the means Perl 6 has to reuse code. They come in
8+
several forms, most notably L<methods|/type/Method>, which belong in
9+
classes and roles and are associated with an object; and functions (also
10+
called I<subroutines> or L<sub|/type/Sub>s, for short), which can be
11+
called independently of objects.
1112
1213
Subroutines default to lexical (C<my>) scoping, and calls to them are
1314
generally resolved at compile time.

0 commit comments

Comments
 (0)