2008/12/16 chromatic <chromatic@wgz.org>: > Imagine if feature.pm had existed in the days of 5.6.0, and the only way to > get lexical filehandles was to say something like: > > use 5.006; > use feature 'lexical_filehandles'; That's not a good example -- lexical filehandles are a syntax addition, not a keyword addition. Likewise, using "my $_", ~~ or // doesn't need "use feature" in 5.10. There is usually enough context and dwimmery built-in to avoid confusing ~~ with a doubled unary ~ or the defined-or with an empty regex. I think the only keyword added in 5.6 was lock, and it wasn't a proper keyword. But weak keywords are a pain for writing maintainable programs, because they are affected by action at distance. I see feature.pm as an improvement over weak keywords.Thread Previous | Thread Next