On Sun, 21 Sep 2008, wren ng thornton wrote:

Even with functionalists ---of the OCaml and SML ilk--- this use of spaces can be confusing if noone explains that function application binds tighter than all operators.

Bwuh? Ocaml programmers certainly know that application binds tighter than operators. And as:

        let f x y = ... in
        f a b

is more efficient (in Ocaml) than:

        let f (x, y) = ... in
        f (a, b)

(Ocaml doesn't optimize away the tuple allocation), the former (Haskell-like) is generally preferred by Ocaml programmers.

SML programmers do use the second form, I'll grant you.

Brian

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to