On Wed, Dec 11, 2024 at 10:51 AM Marc Chantreux <
mc@xxxxxxxxxx> wrote:
>
> Peter wrote so many inspiring things since I started reading him I
> really think twice before objecting anything from it so when he
> suggested in
https://www.zsh.org/mla/workers/2018/msg01400.html
> that "lot of us avoid the alternative syntax like the plague", I took
> this for something I have to sleep on.
I think those remarks apply mostly to script programming. E.g., I use shortloops all the time when at an interactive prompt, up until it becomes complicated enough with pipelines etc. that I need to force the interpretation.
> * most of zsh users just have no idea the alternative syntax exists
> because no one expect such a cool feature to be so hidden an discouraged.
As the current thread has demonstrated, it introduces some ambiguities that make it hard to explain, so it's become more of a power user thing.
> * should we promote the plague (for exemple by accepting it in the
> completion code)?
I'm not sure what that would look like. Completion doesn't really do anything for loop constructs beyond knowing where command position is.