From: Marc Chantreux <khatar@phear.org>
To: Zsh hackers list <zsh-users@zsh.org>
Subject: a little alternative syntax improvement?
Date: Tue, 20 Oct 2015 11:22:00 +0200 [thread overview]
Message-ID: <20151020092200.GA7518@ramirez.u-strasbg.fr> (raw)
hello,
this message is just a proposal but i don't know how naive it is.
i just give it a try.
alternative syntax for for control statements are really pleasant
because the lhs uses the good context
# lhs # rhs
while ((count-- > 0)) { do_something }
while [[ -e $file ]] { do_something }
and could be a bit more if the rhs would be context sensitive also:
for the moment, you need to write
while {next_file} {((
older = last < older ? last : older,
count++
))}
when it would be more readable and consistent to write
while {next_file} ((
older = last < older ? last : older,
count++
))
my two cents.
regards
--
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
-- Abraham Lincoln
reply other threads:[~2015-10-20 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151020092200.GA7518@ramirez.u-strasbg.fr \
--to=khatar@phear.org \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).