caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <alain@frisch.fr>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Should a /\ operator be possible?
Date: Fri, 02 May 2008 11:23:18 +0200	[thread overview]
Message-ID: <481ADD86.3000802@frisch.fr> (raw)
In-Reply-To: <20080501212023.GA373@annexia.org>

Richard Jones wrote:
> In fact can we open the discussion about converting OCaml source files
> into UTF-8 and allow _lots_ more symbols?  eg:
> 
>   let (∪) = ...
>   let (⊆) = ...

Shouldn't this desire of using mathematical symbols be addressed at the 
level of your editor / IDE instead?  If the language allowed you to 
define and use alphanumeric infix operators like:

   let (`subseteq`) = ...
   if (x `subseteq` y) then ...

then you could simply inform your editor that it should display 
`subseteq` as ⊆. The tuareg mode already does this kind of 
"symbolification" of some operators like -> (displayed as an arrow) and 
'a (display as a Greek alpha) and it shouldn't be too difficult to 
extend that to user-defined operators.

-- Alain


  parent reply	other threads:[~2008-05-02  9:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01 19:41 Richard Jones
2008-05-01 21:20 ` [Caml-list] " Richard Jones
2008-05-01 21:36   ` Hezekiah M. Carty
2008-05-02  7:44     ` Gordon Henriksen
2008-05-02  6:43   ` Vincent Hanquez
2008-05-02  8:05   ` David Teller
2008-05-02  8:26     ` Richard Jones
2008-05-02  9:23   ` Alain Frisch [this message]
2008-05-02 11:54     ` Daniel Bünzli
2008-05-05  6:36       ` Maxence Guesdon
2008-05-02 14:27     ` Robert Fischer
2008-05-02 17:02       ` Yann Régis-Gianas
2008-05-02 15:11     ` Hezekiah M. Carty
2008-05-02 15:25       ` Alain Frisch

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=481ADD86.3000802@frisch.fr \
    --to=alain@frisch.fr \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /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).