in reply to Default Scope Behaviour

Says NeoPerl:
Now is there any way this behaviour be altered in such a way that

1) By default all the variables have local scope (no need of my()).

2) We should be able to use a keyword (say global()) to declare a variable having global scope() ?

There was some discussion of this around Perl 6, but it was abandoned. My recollection was that it was dumped partly because it presents real technical problems and partly out of hidebound conservatism and pigheadedness, but I forget.

The discussion is archived here. In my opinion, the discussion was unusually thoughtless, and can stand as a good example of what was wrong with the Perl 6 RFC discussion in general.

Replies are listed 'Best First'.
Re: Re: Default Scope Behaviour
by NeoPerl (Acolyte) on Jan 01, 2001 at 02:26 UTC
    Thanks for pointing that out. I found the discussion thread with less than 5-6 messages in it. Haven't yet even the first thread fully, but I can see a paragraph stating something like "How stupid and complicated will this addition make the above{} 5 lines of code look like...." Well, this kind of discussion (which concerns of things looking stupid rather than useful) should not fit a RFC discussion IMHO.