caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: qrczak@knm.org.pl (Marcin 'Qrczak' Kowalczyk)
To: caml-list@inria.fr
Subject: Re: New Year's resolution suggestions...
Date: 4 Jan 2001 20:31:52 GMT	[thread overview]
Message-ID: <slrn959ndm.7rl.qrczak@qrnik.zagroda> (raw)
In-Reply-To: <Pine.BSF.4.21.0101030748590.12612-100000@shell5.ba.best.com>

Wed, 3 Jan 2001 08:27:02 -0800 (PST), Brian Rogoff <bpr@best.com> pisze:

> I wonder if the same holds for the average working Haskell or
> Clean program which makes heavy use of infixes. What do the Haskell
> programmers on the list think? Does the Haskell approach buy much
> more in practice?

I don't use custom infix operators much in Haskell. Parsing combinators
seem to be their most important use.

More common is forming of infix operators from identifiers, e.g.
    uri `relativeTo` baseUri
    attr0 `setBold` True `setReverse` True
    text1 `isPrefixOf` text2
    ptr `indexPtr` 1
    x `elem` list
which are also used for what OCaml uses alphanumeric operators:
    `div`, `mod`, `shift`

Their precedence can be changed too, but often it is left as default:
between function application and operator application, left associative.

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



  reply	other threads:[~2001-01-06 21:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-02 23:33 Charles Martin
2001-01-03 13:14 ` Pierre Weis
2001-01-03 15:38   ` Charles Martin
2001-01-03 16:27   ` Brian Rogoff
2001-01-04 20:31     ` Marcin 'Qrczak' Kowalczyk [this message]
2001-01-04 13:25 Dave Berry

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=slrn959ndm.7rl.qrczak@qrnik.zagroda \
    --to=qrczak@knm.org.pl \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).