From: Michael Campbell Date: 2005-08-03T23:31:05+09:00 Subject: Re: [RCR] array or with non-array Simon Strandgaard writes: > Sometimes wish that [3, 5, 13] | [8] can be written as [3, 5, 13] | 8 > that ary |= 42 would be possible. > > chris2 pointed out that it would be inconsistent with [1,2,3] + 4. > maybe let + append 4 to the array? > > > > ary = [1, 3, 4] > #=> [1, 3, 4] > > ary |= 2 > #=> [1, 2, 3, 4] Why not [2, 1, 3, 4] or [1, 3, 2, 4] or [1, 3, 4, 2] here? Arrays have an ordering; how do you specify where your new element goes? -- I tend to view "truly flexible" by another term: "Make everything equally hard". -- DHH