File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
= SUBTITLE Functions and functional programming in Perl 6
6
6
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.
11
12
12
13
Subroutines default to lexical (C < my > ) scoping, and calls to them are
13
14
generally resolved at compile time.
You can’t perform that action at this time.
0 commit comments