caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* let ... in layout
@ 2000-03-15  1:33 Julian Assange
  2000-03-15  8:22 ` Jean-Yves Moyen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julian Assange @ 2000-03-15  1:33 UTC (permalink / raw)
  To: caml-list; +Cc: proff


let .. in
let .. in ...

seems such a common construct in caml that it could do with some
syntatic sugar. I often see let..in run to 5-20 clauses. This appears
incredibly ugly compared to the equivalent haskell code, is harder to
read and takes longer to write due to the clutter of the surrounding
token magic. Has anyone thought about applying layout in general to
ocaml, or otherwise sugaring let...in? Is there any reason why the BNF

        let {name = expr}+ in

would be ambiguous?

The only other haskell features I frequently miss, are list
comprehensions and multiple argument pattern matching.

Cheers,
Julian.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-03-17 15:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-15  1:33 let ... in layout Julian Assange
2000-03-15  8:22 ` Jean-Yves Moyen
2000-03-15 22:18   ` Julian Assange
2000-03-17  9:42     ` Pierre Weis
2000-03-15  8:56 ` Benoit Deboursetty
2000-03-17 13:16 ` Dmitri Lomov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).