News for hackers. Stuff that matters.
Re:Go as an alternative to Node.js for Very Fast Servers by acc00 on Friday February 22, 2013 @05:49PM (#5267433)
See [0] for an introduction to M-expressions, which was initially an alternative syntax for Lisp, but have found its way into APL and Mathematica.

Please note I'm suggesting using that syntax for OCaml, not Go.

In short, I want to write "f[x;y]" for "f x y". On the first sight it appears this adds a bunch of noise, but there are many advantages:

1. You now have much less parens resulting from nested function calls;

2. You get partial application by any argument, not just the last. map[;list] is a "functor" that applies its argument to "list";

3. Corollary to this, chaining functions together is now much easier even if you need to supply a parameter other than the last: f[;x]$g[y] (assuming $ stands for apply; it might be wortwhile to take empty space for application)

4. Further you are able to unify many aspects of the syntax (if[cond;true;false]), which makes parsing easier for both humans and computers.

[0] http://en.wikipedia.org/wiki/M-expression

There are no comments on this comment yet.