J. David Blackstone said: > Prior to version 5, all implementations of Perl were designed with > only dynamic variables in mind. Perl5 provided lexical variables in a > backward compatible way. Perl6 should make lexical variables the default. > ... That's certainly a nice idea. However, a lot of scripts will break if you do this (we wouldn't reach the 80% of scripts 100% compatible, I'm pretty sure). I base this assertion on our learnings from mod_perl--few scripts written without 'use strict' can be used in mod_perl directly, due to assumptions being made in scripts about behaviour of global variables. Perhaps there should be a 'use dynamic' pragma that can be added to any script that needs the perl 5 scoping. That way although scripts will break, a band-aid fix will be very simple (just add the pragma). More generally, how do people feel about compatibility through pragmas? When we talk about the 80% hurdle for compatibility, could this be only if a 'use perl5' or similar pragma were used (which would enable things like dynamic scoping)? -- Jeremy Howard [EMAIL PROTECTED]
- RFC: lexical variables made default J. David Blackstone
- Re: RFC: lexical variables made default Jonathan Scott Duff
- Re: RFC: lexical variables made default Juanma Barranquero
- Re: RFC: lexical variables made default Michael Mathews
- Re: RFC: lexical variables made defau... Tom Christiansen
- Re: RFC: lexical variables made ... Jonathan Scott Duff
- Re: RFC: lexical variables m... Tom Christiansen
- Re: RFC: lexical variabl... Jonathan Scott Duff
- Re: RFC: lexical variables made ... Tad McClellan
- Re: RFC: lexical variables m... John Porter
- Re: lexical variables made default Jeremy Howard
- Re: lexical variables made default Ted Ashton
- Re: lexical variables made default Tom Christiansen
- Re: lexical variables made default Graham Barr
- RFC: lexical variables made default (revised) J. David Blackstone
- Re: RFC: lexical variables made default (revi... John Tobey
- Re: RFC: lexical variables made default (... J. David Blackstone
- Re: RFC: lexical variables made default (revi... Tom Christiansen
- Re: RFC: lexical variables made default (... J. David Blackstone
- Re: RFC: lexical variables made default (revi... Nathan Wiger
- Re: RFC: lexical variables made default (... Glenn Linderman