Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention method call syntax right up front
  • Loading branch information
TimToady committed Feb 23, 2015
1 parent c6babf0 commit c7cc8fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Language/5to6.pod
Expand Up @@ -44,6 +44,17 @@ promising.
=head2 Syntax
=head3 Method call syntax
If you've read any Perl 6 code at all, it's immediately obvious that
method call syntax now uses a dot instead of an arrow:
$person->name # Perl 5
$person.name # Perl 6
The dot notation is both easier to type and more of an industry standard.
But we also wanted to steal the arrow for something else.
=head3 Whitespace
Perl 5 allows a surprising amount of flexibility in the use of whitespace,
Expand Down

0 comments on commit c7cc8fb

Please sign in to comment.