What should specialized-array-reshape do? Bradley Lucier (12 May 2020 22:22 UTC)
Re: What should specialized-array-reshape do? John Cowan (12 May 2020 22:32 UTC)
Re: What should specialized-array-reshape do? Bradley Lucier (12 May 2020 22:43 UTC)
Re: What should specialized-array-reshape do? John Cowan (12 May 2020 23:57 UTC)
Re: What should specialized-array-reshape do? Bradley Lucier (13 May 2020 01:11 UTC)

Re: What should specialized-array-reshape do? Bradley Lucier 13 May 2020 01:10 UTC

On 5/12/20 7:57 PM, John Cowan wrote:
> True, but you don't want to raise even a continuable exception (which
> does not unwind the stack) every time you *don't* copy the array.

OK, to be clear, you choose option 2:

2.  Offer a function array-can-be-reshaped-in-place?, so users can check
themselves, and have specialized-array-reshape throw an error if asked
to do something impossible.

With the additional caveat to make the raised exception continuable.

Brad