Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Disallow array initializer for named reference



On Tue, Jun 10, 2025 at 2:07 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> I would rather change the existing "inconsistent type for assignment" errors into warnings than change the new one into an error.

Yeah, that probably wouldn't fly, because scripts that now stop would
instead continue running with parameters that don't exist or have
different type than before.

There presumably aren't any "production" scripts using named
references, so we have some flexibility there, but it likely makes
more sense for both to be an error.




Messages sorted by: Reverse Date, Date, Thread, Author