Re: Clarification on Default Scoping (was Re: C<strict> as default (was Re: RFC 16 (v1)))

[email protected] (Bart Lateur) Mon, 07 Aug 2000 17:42:54 +0200
Newsgroups perl.perl6.language.strict
Organization MediaMind
Message-ID <[email protected]>
On Mon, 7 Aug 2000 10:45:01 -0400, Ted Ashton wrote:

>While I'm not yet prepared to advocate any of the suggestions, *if* lexicals
>were the default, the above code could be written:
>
>         $x = 2;
>         if (...) {
>           $x = 1;
>           ...
>         }
>         print "$x\n";
>
>Could it not?

Gee, that is the same situation as we have now, with global variables
and without strict. The only difference will surface only when your
project consists of more than one source file: file scoped lexicals vs.
everything trancending globals.

So: what good is it?

-- 
	Bart.