Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why not promote the plague ? (brace|rc|alternative|modern) syntax
- X-seq: zsh-users 30141
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: why not promote the plague ? (brace|rc|alternative|modern) syntax
- Date: Thu, 12 Dec 2024 09:49:55 -0500
- Archived-at: <https://zsh.org/users/30141>
- In-reply-to: <Z1nfDWyISrBhsfXO@prometheus>
- List-id: <zsh-users.zsh.org>
- References: <8e1cd80d-fcee-4227-93ae-de2339d066fa@eastlink.ca> <5b4a5f55-717e-4794-93d7-bfd03a955ba8@app.fastmail.com> <CAA=-s3z=C2YLSMiz1cYyuCNo1pxuESZ6qvP4EQyQFT60n3+itA@mail.gmail.com> <26784dbc-3f8b-48d0-abab-193e6ec138ea@app.fastmail.com> <CAH+w=7YKdGJeBzQnYKjkdi5EFSSu=dp2fyLT4wJnk7=XTA0LbQ@mail.gmail.com> <Z1nfDWyISrBhsfXO@prometheus>
- Ui-outboundreport: notjunk:1;M01:P0:5m0+qWzvrYU=;hJaE5t+fQZCHr5ZWeHU/btJZzP1 9cCSyizZJ7J+ydsplsMfejOWtHRhoaxYRUQkXE5KHvCPKsYx3Z4Bi4LzMAgDgH92uw557YxdR ZofAjKpApJlEbkzXSR2pmKd46mgOsCsz8fl31YKpZhhAeeClue5cZlL680OAnaiEJzs5zd98n vWswdlojI1QUD7BmkokTE+5LfGFWRhbWcOlirmnE8h5mizsiQwCkVu2lpjeY/11Ukpzo0kT4J hnkJzK85xuOs3qZqE+fpRH4/rmmgXougoBlWhUYZ1EnlvL6zK/N0Nf3hsRBrfWsUHZ7jZ5qni ktqzI+2x9ZnnTXon6tKn9AYQwRnZeCo4tX9G94mlkcaeq35hJ7n6WeWUWZ6Oq0lscrNjbStck Wym46Go72uDzdmCL5MoaT61rxOgHjOd5B0e2SGK3a0drr/WdAzmhy2VIE7IA0L9iD4wUimX3q 3YzRzY5Ih/sFL4blw/zYklvr6TdsrgRz2ZK0ZqXwrXL4G7mDanyIR6NYWlDmtWpKuQ8okDPGB dmlYPgWjEbI/wEGxKGE4IFLhsTz9cecxaUMr2gRlRGR8dGmJgqGFqjSEPH+0kGeKPKL9/vnOa JtZAzp7NfbM9nJ7v3+LoNrITn34H9sqZKed2uUtMqEpNptdciLg/A4afuLsqT9ej/EnwNor33 FZVs426A8pHuFX5IgpoP/ABQC2tZtrOm6QFrVLlZzwPlTx2PCnP14cIS/9sabsdaTU+fKJ2tS e1Fb7IKyvdrc7Z7a65h/fuW75p3mbh0KGEPawUTB0V4k2SdKY80s5l2+kvETse57gw06rcIPH H0KnQVf28WNoOximIDiDwG/3nYJVgKbLos/ZYXYtWF4NKYk+pUpauR5+LrCU+lvg0lrZwhqat NZYoXjKBatFuhIE/ZjqMMuB2ZMSdpoV+tI4k+pTnWQWfiOP7/1xgkCktHD+z+fYJXtZneg9Lm n4lqVKDDU2wFwlghuviuyWHbsbv7I6N8Skba3pc6eAQXC8TTmZB9xBdJsI2617Kv/JENDJTZ/ mdd9Cr2XaRsolDK7mmdncJUm9IXoWBRwI1DbT2i0vR3bDwrvQ2SuD8+eimU3dAzgXEsRk2xtD 9mvtkdzP/0JM+vSHdltEchnbAARgWk
On 12/11/24 1:50 PM, Marc Chantreux wrote:
hello people,
On Sun, Dec 8, 2024 at 1:25 AM Lawrence Velázquez <larryv@xxxxxxx> wrote:
That's the whole point: it's not clear to me why short "if" and
short "while" behave differently when interrupted by EOF in a similar
way. Is it a bug? Or is the "while" body sneakily optional?
See the thread starting here:
https://www.zsh.org/mla/workers/2018/msg01398.html (workers/43595)
* 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.
* I really would like to know who are the "most of us" (where was it
discussed? what are the arguments?)
* should we promote the plague (for exemple by accepting it in the
completion code)?
Aside from the bug in the mentioned thread, the fact that core developers were
(and possibly still is) confused about expected behavior is enough to avoid the
alternative syntax. Many people that i learned from in IRC can't readily grok it
without a man page, sure some of that is probably due to lack of use but in
addition to bugs and fringe behavioral differences from the normal syntax i see
little gain in doing so apart from some people find it aesthetically pleasing.
Of the people that i've personally seen rave about it over the past 20 years,
it starts and stops with finding it aesthetically pleasing, nothing technical.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author