Hacker News new | ask | show | jobs
by carapace 1340 days ago
> How many applications that you use on a daily basis work as follows...

Most of them, but then I use the CLI a lot. E.g.:

    find <params> | grep  <params> | xargs foo <params>
Where "foo" is (of course) a kind of meta-parameter, both a parameter itself and a function/application.

- - - -

How do you mean, ALGOL isn't a general purpose language?

1 comments

1. The shell is not calling functions, it is composing filters via I/O. Superficially similar, but actually quite different. (And how it makes it superficially look like function application is also quite interesting, IMHO).

2. But yes, programs that act like functions definitely do exist. They even used to be in the majority.

3. ALGOL stands for ALGOrithmic Language. It's a DSL for the domain of algorithms. As are virtually all our mainstream so-called "general purpose" languages.

In re: #1 that's the kind of discussion I could have all day. (If you take the state of the machine including the filesystem, then almost all non-networked programs could be treated as pure functions, eh?)

#2 so how does that modify your original comment, if at all?

#3 What would you contrast our mainstream so-called "general purpose" languages with?