Nathan Wiger wrote: > The only thing that *really* makes me nervous about the RFC is this > part: > > > > @d = @b * @c; # Returns (2,8,18) > > > > > > If the lists are not of equal length, an error is raised. > > I really don't like the "error is raised" part, at least not by default. > Maybe "use strict 'ops'" could turn this on. I think by default arrays > should DWIM in this context, whether it be auto-padding with undef's, > 1's, or whatever we decide. This bit has changed in the last version. Previous versions specified that the smaller arrays should act as if they were the same size as the larger, but were padded with undefs (but no actual autovivification would occur on the array itself). Maybe if ':bounds' (RFC 203) is set on both arrays, then the exception behaviour occurs, otherwise the implicit padding occurs...
- RFC 82 (v3) Arrays: Apply operators element-wise in a ... Perl6 RFC Librarian
- Re: RFC 82 (v3) Arrays: Apply operators element-w... Nathan Wiger
- Re: RFC 82 (v3) Arrays: Apply operators eleme... c . soeller
- Re: RFC 82 (v3) Arrays: Apply operators e... Jeremy Howard
- Re: RFC 82 (v3) Arrays: Apply operato... Nathan Wiger
- Re: RFC 82 (v3) Arrays: Apply op... Jeremy Howard
- Re: RFC 82 (v3) Arrays: Apply operato... Nathan Torkington
- Re: RFC 82 (v3) Arrays: Apply op... Nathan Wiger
- Re: RFC 82 (v3) Arrays: Appl... Jeremy Howard
- Re: RFC 82 (v3) Arrays: ... Doug Hunt
- Re: RFC 82 (v3) Arrays: ... Jeremy Howard
- Re: RFC 82 (v3) Arrays: ... c . soeller
- Re: RFC 82 (v3) Arrays: Appl... c . soeller
- Re: RFC 82 (v3) Arrays: Apply op... Jeremy Howard
- Re: RFC 82 (v3) Arrays: Appl... Nathan Torkington
- Re: RFC 82 (v3) Arrays: Apply op... Chaim Frenkel