caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] pipe input short syntax idea
@ 2015-10-10 13:52 Nils Becker
  2015-10-10 14:11 ` octachron
  2015-10-11  1:09 ` Martin DeMello
  0 siblings, 2 replies; 8+ messages in thread
From: Nils Becker @ 2015-10-10 13:52 UTC (permalink / raw)
  To: caml-list

hi,

just an idea for a short notation which might be appealing:

(|> f |> g |> ... ) as abbreviation for (fun x -> x |> f |> g |> ...)

(|> f) would be just f.

in other words a it's function composition using |> . it looks intuitive
to me. but of course it could be a bad idea for a lot of reasons.

n,


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

end of thread, other threads:[~2015-10-11  8:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-10 13:52 [Caml-list] pipe input short syntax idea Nils Becker
2015-10-10 14:11 ` octachron
2015-10-11  0:19   ` Yotam Barnoy
2015-10-11  0:56     ` Ian Zimmerman
2015-10-11  1:01       ` Yotam Barnoy
2015-10-11  1:09 ` Martin DeMello
2015-10-11  1:31   ` Yotam Barnoy
2015-10-11  8:36     ` Petter A. Urkedal

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).