From: Arturo Borquez <aborquez@altavista.com>
To: florian@hars.de
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Haskell features in O'Caml
Date: 23 Sep 2001 16:25:24 -0700 [thread overview]
Message-ID: <20010923232524.5025.cpmta@c012.sfo.cp.net> (raw)
On Sun, 23 September 2001, Florian Hars wrote:
.....
> > > Also if a function is named using operator symbols it can be used as
> > > an operator, e.g if &&& is defined as:
> > Ocaml:
> > # let ( &&& ) x y = if x >= y then x else y;;
>
> But you cannot change the fixity, it is defined by the first char of
> the operator, ie. ++, +*/- and +@%&!- all have the same precedence and
> associativity as +.
Yes, but default associativity can be overriden using
proper parens, and produces more readable code.
Best regards
Arturo
Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-09-23 23:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-23 23:25 Arturo Borquez [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-09-24 22:51 Christian.Schaller
2001-09-25 9:15 ` Remi VANICAT
2001-09-24 16:26 Christian.Schaller
2001-09-24 19:53 ` Remi VANICAT
2001-09-22 14:56 Arturo Borquez
2001-09-23 16:08 ` Florian Hars
2001-09-23 16:21 ` Mattias Waldau
2001-09-23 17:50 ` Dave Mason
2001-09-24 11:14 ` Sven
2001-09-24 15:29 ` Brian Rogoff
2001-09-22 11:46 Steven Murdoch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010923232524.5025.cpmta@c012.sfo.cp.net \
--to=aborquez@altavista.com \
--cc=caml-list@inria.fr \
--cc=florian@hars.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox