in reply to Re: RFC: pragma pragmatic
in thread RFC: pragma pragmatic
First, use 5.010; is not "a global-scope enablement"; it's just as lexically-scoped as use feature qw( say ); (except for the version check, obviously).
$ perl -e' > { use 5.010; say "foo"; } > say "bar"; > ' String found where operator expected at -e line 3, near "say "bar"" (Do you need to predeclare say?) syntax error at -e line 3, near "say "bar"" Execution of -e aborted due to compilation errors.
Secondly, the need for say to be enabled has nothing to do with a need for "clean namespaces"; it's all about not breaking existing programs that have a sub named say.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RFC: pragma pragmatic
by BrowserUk (Patriarch) on Aug 12, 2017 at 08:59 UTC | |
by ikegami (Patriarch) on Aug 13, 2017 at 04:15 UTC |