Browse thread
Custom operators in the revised syntax
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Christian Stork <cstork@i...> |
| Subject: | Re: [Caml-list] Custom operators in the revised syntax |
On Sun, May 13, 2007 at 02:27:34AM +0200, ketti wrote:
> On 5/13/07, Nicolas Pouillard <nicolas.pouillard@gmail.com> wrote:
>
> >I've a tiny patch to do that:
> >
> >2 ``List.mem`` [1;2;3]
> >
> >I think that extension harmless, any thoughts?
>
>
> What about: 2 ´List.mem´ [1;2;3] ?
Or:
2 `(List.mem) [1;2;3]
Then you could even have operators with arguments. IIRC this idea (not
this particular syntax) was proposed for Haskell' but wasn't worth the
effort to make work with their current `single-op` syntax. Maybe it's
worth it in this case?
--
Chris Stork <> Support eff.org! <> http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint: B08B 602C C806 C492 D069 021E 41F3 8C8D 50F9 CA2F