News for hackers. Stuff that matters.
Re:Not Lisp again (2009) by tromp on Tuesday May 02, 2017 @01:04PM (#14248196)
Lisp has the minimal syntax for lists:

    (a b c d)
where other languages require separating commas, but Haskell has minimal syntax for function application:

     f x y z
with no parenthesis needed. (Technically, this is a triple application ((f x) y) z, masked by the convention of application being a left-associative binary operator.)
Re:Not Lisp again (2009) by wtetzner on Tuesday May 02, 2017 @01:37PM (#14248568)
Right, Haskell's function application syntax is more "minimal" that Lisp's, at least in the simple case.

But golergka said that Lisp's syntax is the clearest, not the smallest. And while that's probably something that depends on one's knowledge and past experience, I think there's something to it. The parens mean that it's unambiguous, and there is very little work on the reader's part to figure out where an expression begins and ends.

There's no operator precedence to keep in mind, no special whitespace rules, etc. It's about as minimal as you can get while still being completely explicit about syntactic constructs.

Re:Not Lisp again (2009) by kazinator on Tuesday May 02, 2017 @01:28PM (#14248463)
That is "minimally punctuated syntax". What we want is a "minimal correspondence between written syntax and the AST"; that is what is really meant by "Lisp has minimal syntax".

What you have there is loaded with ambiguity that has to be resolved by semantics. And after the dust settles, you're left without variadic functions.

Partial evaluation and currying are very valuable techniques. They are still succinct if there is a visible, explicit partial application operator to denote a function that is constructed by binding arguments around an expression.

Re:Not Lisp again (2009) by golergka on Wednesday May 03, 2017 @07:39AM (#14254829)
> but Haskell has minimal syntax for function application: > f x y z

The question is, is it the _only_ syntax that Haskell offers and that the full language is built upon?

Re:Not Lisp again (2009) by chirau on Tuesday May 02, 2017 @01:15PM (#14248321)
How would you write f((x y)z) in Haskell?
Re:Not Lisp again (2009) by scriptdevil on Tuesday May 02, 2017 @01:47PM (#14248697)
f $ x y $ z

Basically, f $ x = f x and is applied with lowest operator precedence (0) and is right associative. Therefore, f $ x y $ z = f (x y $ z) = f((x y) z)

Re:Not Lisp again (2009) by vq on Tuesday May 02, 2017 @02:26PM (#14249115)
If by (x y) you mean x(y) then I would write it like this:

f (x y) z

Re:Not Lisp again (2009) by tromp on Tuesday May 02, 2017 @02:24PM (#14249099)
f (x y z)