On Tue, Nov 12, 2002 at 04:20:12AM +0100, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
I don't think it's much use being error tolerant in the insert operation since it's typically only used in ADTs that actually allows duplicate indices, otherwise []= works just as well. Perhaps the insert function shouldn't be defined at all in ADTs that don't allow duplicate indices.
hmm, insert would allow you to get an error if the element is already there, which can be very usefull. an assignment would never fail.
greetings, martin.