TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Functional Programming Archaeology

18 pointsby abstractwaterover 15 years ago

2 comments

gruseomover 15 years ago
It's neat to see James Hague write about APL/J/K, and the article makes an interesting historical observation about the point-free style of functional programming. But I think he does the APL strain of languages a bit of an injustice. They are certainly different, but not as utterly difficult as he makes out (or as first impressions invariably suggest). And while the community may be miniscule, it is far from moribund: it thrives in its niche, which is in fact quite lucrative.
jonsenover 15 years ago
<i>Assuming x is a truth value--either 0 or 1--then !x gives the same result as these expressions:</i><p><pre><code> 1 - x x ^ 1 (x + 1) &#38; 1 </code></pre> In x ^ 1, ^ is exclusive or, not exponentiation. But exponentiation can also do the trick:<p><pre><code> 0 ^ x</code></pre>