zsh-users
 help / color / mirror / code / Atom feed
From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-users@sunsite.dk
Subject: Re: Complex forms deprecated?
Date: Sat, 16 Jun 2007 16:44:26 +0200	[thread overview]
Message-ID: <20070616144426.GA2260@picard.franken.de> (raw)
In-Reply-To: <466FAB58.5090103@ulpmm.u-strasbg.fr>

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

Marc Chantreux wrote:
[...]
> I think that modern syntax is a simple feature that makes zsh faster to 
>  use than any other shell. coming from bash, i was very impressed to write
> 
> for f ( *.jpg ) mv $f $f:r.jpeg
> 
> instead of
> 
> for f in *.jpg; do mv $f $f:r.jpeg; done

I prefer
for f in *.jpg ; mv $f $f:r.jpeg
:-)

> I'm currious about how many of us are using the deprecated syntax. So 
> curious that i wrote a poll page to know about it

For me, there is a simple reason to prefer
   if cmd ; then foo ; else bar ; fi
over
   if ( cmd ) { foo } else { bar }

On German keyboard layout, "{" and "}" are notoriously bad to
type (using Alt-gr (=right alt) and 7/0 from the upper keyboard
row) [which is one of the reasons why I mapped "if" to become
   if (_) {
   }
(cursor on "_") in vim for perl hacking...].
Using ";" and "normal" words is not so strange to type...

Ciao,
Thomas

-- 
 Thomas Köhler       Email:       jean-luc@picard.franken.de
     <><             WWW:              http://gott-gehabt.de
                     IRC:                           tkoehler
                     PGP public key available from Homepage!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2007-06-17  3:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11 14:40 antho.charles
2007-06-11 15:15 ` Peter Stephenson
2007-06-13  8:31 ` Marc Chantreux
2007-06-13 13:42   ` antho.charles
2007-06-13 15:11     ` Matt Wozniski
2007-06-13 15:27       ` Marc Chantreux
2007-06-13 15:50         ` Frank Terbeck
2007-06-13 16:28           ` Joel J. Adamson
2007-06-13 16:28       ` Bart Schaefer
2007-06-13 15:42   ` Bart Schaefer
2007-06-16 14:44   ` Thomas Köhler [this message]

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=20070616144426.GA2260@picard.franken.de \
    --to=jean-luc@picard.franken.de \
    --cc=zsh-users@sunsite.dk \
    /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).