Re: RFC 238 (v1) length(@ary) deserves a warning
[email protected] (Bart Lateur) Sat, 16 Sep 2000 19:17:21 +0200
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Organization | MediaMind |
| Message-ID | <[email protected]> |
On Sat, 16 Sep 2000 16:19:08 +0100, Hildo Biersma wrote: >> But using arrays in a scalar context usually isn't an error. > >So, we make the warnings smarter and make sure they can be turned off... And distinguish between simply an array in scalar context, and an array used as an argument for length()? In that case, we're back to square one. I wouldn't mind a option in the core (or in a standard module) for "extra picky warnings", though: much stricter than the current warnings in Perl5. -- Bart.