Nathan Wiger writes: > I argue we should fundamentally shift this thinking in Perl 6. Let's > truly have "lexical variables made default". Ugh. Baby, bathwater. If I'm writing a big program, then I want to have to declare all variables so that Perl can catch errors for me. That's the big benefit of strict. Otherwise you're still going to make typos and have a bugger of a time tracking them down, because the compiler won't be helping you do it. You've taken the wrong approach. If you're writing a big program then there should be *no* default scope. Any variable access is an error unless that variable was my()ed or our()ed. That's basically what 'strict' gives us. The only thing I think we should argue is whether strict should be default or not. I could fall both ways. If there was a command-line switch to turn it off, then I'd be happy with strict as the default. Nat
- Re: RFC: lexical variables made default (revised) John Tobey
- Re: RFC: lexical variables made default (revi... J. David Blackstone
- Re: RFC: lexical variables made default (revised) Tom Christiansen
- Re: RFC: lexical variables made default (revi... J. David Blackstone
- Re: RFC: lexical variables made default (revised) Nathan Wiger
- Re: RFC: lexical variables made default (revi... Glenn Linderman
- Re: RFC: lexical variables made default (... Nathan Wiger
- Re: RFC: lexical variables made defau... Jeremy Howard
- Re: RFC: lexical variables made ... Tom Christiansen
- Re: RFC: lexical variables m... Jeremy Howard
- Re: RFC: lexical variables made default (revi... Nathan Torkington
- Re: RFC: lexical variables made default (... Nathan Wiger
- Re: RFC: lexical variables made defau... Ariel Scolnicov
- Re: RFC: lexical variables made default (... Damian Conway
- Re: RFC: lexical variables made defau... Nathan Wiger
- Re: RFC: lexical variables made ... Johan Vromans
- Re: RFC: lexical variables m... Nathan Wiger
- Re: RFC: lexical variables m... Tom Christiansen
- Re: RFC: lexical variables made default (revi... J. David Blackstone
- Re: RFC: lexical variables made default (revi... Nick Ing-Simmons
- RE: RFC: lexical variables made default Ala Qumsieh