zsh-users
 help / color / mirror / code / Atom feed
From: Stephen Blott <smblott@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Higher order functions in zsh (article link)
Date: Fri, 8 Mar 2013 08:40:02 +0000	[thread overview]
Message-ID: <20130308084002.GA21406@computing.dcu.ie> (raw)
In-Reply-To: <CACQNQ9NWxOUsF_iZ++ygUVmDpdRgnrezyDJpPg4cfJ4tiqDu1g@mail.gmail.com>

On Thu, Mar 07, 2013 at 10:55:01AM +0530, rahul wrote:
>THis has been posted on reddit programming, thought I'd share with you.
>
>http://yannesposito.com/Scratch/en/blog/Higher-order-function-in-zsh/index.html
---end quoted text---

The examples look like those of a Java programmer translating their Java 
programming style to shell programming.  They can be better solved with 
zargs or, if you insist on a Posix shell, then pipes.  Pipes in Unix-like 
systems play exactly the role of map, filter and reduce in functional 
systems.

That's not to say that there's no merit to the idea.  I'd just like to see 
more compelling examples.

Steve


      parent reply	other threads:[~2013-03-08  8:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-07  5:25 rahul
2013-03-07 16:59 ` Christopher Browne
2013-03-07 19:08   ` Phil Pennock
2013-03-07 21:12     ` Oliver Kiddle
2013-03-08  8:40 ` Stephen Blott [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=20130308084002.GA21406@computing.dcu.ie \
    --to=smblott@gmail.com \
    --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).