Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
whitespace
  • Loading branch information
coke committed Apr 12, 2019
1 parent 21b8280 commit 9bc4630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/js-nutshell.pod6
Expand Up @@ -69,7 +69,7 @@ var foo = 1; // Lexically scoped with functions and modules
let foo = 1; // Lexically scoped with blocks
const foo = 1; // Lexically scoped with blocks; constant
// No equivalent to Perl 6 dynamic variables exists.
// No equivalent to Perl 6 dynamic variables exists.
global.foo = 1; // Globally scoped
foo = 1; // Ditto, but implicit; forbidden in strict mode
Expand All @@ -80,10 +80,10 @@ there is no variable hoisting in Perl 6; variables are defined and assigned
at the line they're on, not defined at the top of its scope and later assigned
at that line.
In addition to regular variables, in Perl 6 there are what is known as dynamic
In addition to regular variables, in Perl 6 there are what is known as dynamic
variables. Dynamic variables are looked up using the caller's scope, rather
than the outer scope. This is what the equivalent variable declarations look
like in Perl 6:
like in Perl 6:
=begin code
my $foo = 1; # Lexically scoped
Expand Down

0 comments on commit 9bc4630

Please sign in to comment.