From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id A81B3BBC1 for ; Fri, 25 Apr 2008 22:37:51 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvUAAMvdEUjRVYa9c2dsb2JhbACCNTaObgEMAwQECQ+VVYUG X-IronPort-AV: E=Sophos;i="4.25,709,1199660400"; d="scan'208";a="25506113" Received: from mu-out-0910.google.com ([209.85.134.189]) by mail4-smtp-sop.national.inria.fr with ESMTP; 25 Apr 2008 22:37:51 +0200 Received: by mu-out-0910.google.com with SMTP id w9so3284085mue.3 for ; Fri, 25 Apr 2008 13:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=3aA2lwiwsdlIcwANAWVRfpYbqxJn3W4yqOjI/+PRBg4=; b=edp++mcNaivMhlFKTqSiowfOs8r9fDImZZEF5TYk84GVcaAEAgQ+PTr8TVdyGmw6kv1bAYZY4PE+3p4Srtns8pH4wwaYorSaZp4Bevx6iGv/cwef+f0kjIGBc2QQcGEz6gKR0BNJQMtjRkkNIa+wapT/OmcWXmQaUOW8HhSiI1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OOeG2+vbNbY5WT79GdYgJZSM0YJMGjzgrDTGa0vLvdnidjhuQ7e4MXZUzf6UopdyfRNivGVNVDXUsNp4aRCWVaNfifgxuOxg24eAlI0mRF6u+wyYB5W8RRxJ9Qq4bBi+Wwj1V3RY9tB+smeO+aNI0LYZPaD7wkH3fbBFYnp7KH8= Received: by 10.78.106.3 with SMTP id e3mr3386848huc.97.1209155867870; Fri, 25 Apr 2008 13:37:47 -0700 (PDT) Received: by 10.78.187.19 with HTTP; Fri, 25 Apr 2008 13:37:47 -0700 (PDT) Message-ID: <74cabd9e0804251337m40811532yb359710630cdbdfd@mail.gmail.com> Date: Fri, 25 Apr 2008 13:37:47 -0700 From: "Arthur Chan" To: "David Teller" Subject: Re: [Caml-list] [OSR] Standard syntax extensions ? Cc: Caml In-Reply-To: <1209052182.6180.35.camel@Blefuscu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6007_29339955.1209155867862" References: <1209052182.6180.35.camel@Blefuscu> X-Spam: no; 0.00; syntax:01 syntax:01 hashtbl:01 python's:01 mylist:01 univ-orleans:01 ocaml:01 spawned:01 diverges:01 ocamlfind:01 camlp:01 camlp:01 syntaxes:01 dependencies:01 cheers:01 X-Attachments: cset="UTF-8" cset="UTF-8" ------=_Part_6007_29339955.1209155867862 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey David, Would it be difficult to have python-like syntax for List.exists? Could we add it to Hashtbl and Array too? I'm not too fond of python's general sloppiness, but the (x in mylist) syntax seemed very pretty to me. At the least, it correspondes directly to mathematical syntax (x \in blah, for Latex ppl). Does this already exist in a syntax extension? -Arthur Chan On Thu, Apr 24, 2008 at 8:49 AM, David Teller wrote: > Dear list, > > Now that the forge is up, it's time to (re)start thinking about the OSR > and what we want the future of the OCaml standard distribution to look > like. Other threads will be (re)spawned regarding various aspects of > that distribution, but for now, I'd like to discuss which syntax > extensions. Oh, and before this thread diverges again, let me underline > that we're *not* discussing delivery mechanisms or ocamlfind or > ocamlbuild or repositories or GODI or IDisposable or camlp4 vs. > camlp5... We're also not discussing original vs. revised syntax vs. twt > [yet], although if you consider that some extension would be much more > useful if rendered compatible with one of these syntaxes, please mention > it. > > Now, a few subjects I'd like to see covered: > * which syntax extensions do you use so often that you consider they > should be part of the language ? > * which syntax extensions are very important to you but should not be > included in the core language [yet] ? > * which syntax extensions are good ideas and should go into one of the > previous categories but miss the mark because of dependencies / cosmetic > issues and/or incompatibilities with other extensions or with the latest > camlp4 ? > * what kind of syntactic sugar is absolutely missing from the language ? > > As this may come into play later, whenever you suggest an extension, > don't hesitate to comment whether you believe whom this extension would > serve: beginners ? power-users ? some more specific category ? > > Cheers, > David > -- > David Teller > Security of Distributed Systems > http://www.univ-orleans.fr/lifo/Members/David.Teller > Angry researcher: French Universities need reforms, but the LRU act brings > liquidations. > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ----------------------------------------------------------------------- (\__/) (='.'=)This is Bunny. Copy and paste Bunny into your (")_(")signature to help him gain world domination. ------------------------------------------------------------------------ ------=_Part_6007_29339955.1209155867862 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey David,

Would it be difficult to have python-like syntax for List.exists?  Could we add it to Hashtbl and Array too?  I'm not too fond of python's general sloppiness, but the (x in mylist) syntax seemed very pretty to me.  At the least, it correspondes directly to mathematical syntax (x \in blah, for Latex ppl).

Does this already exist in a syntax extension?

-Arthur Chan



On Thu, Apr 24, 2008 at 8:49 AM, David Teller <David.Teller@univ-orleans.fr> wrote:
   Dear list,

 Now that the forge is up, it's time to (re)start thinking about the OSR
and what we want the future of the OCaml standard distribution to look
like. Other threads will be (re)spawned regarding various aspects of
that distribution, but for now, I'd like to discuss which syntax
extensions. Oh, and before this thread diverges again, let me underline
that we're *not* discussing delivery mechanisms or ocamlfind or
ocamlbuild or repositories or GODI or IDisposable or camlp4 vs.
camlp5... We're also not discussing original vs. revised syntax vs. twt
[yet], although if you consider that some extension would be much more
useful if rendered compatible with one of these syntaxes, please mention
it.

Now, a few subjects I'd like to see covered:
* which syntax extensions do you use so often that you consider they
should be part of the language ?
* which syntax extensions are very important to you but should not be
included in the core language [yet] ?
* which syntax extensions are good ideas and should go into one of the
previous categories but miss the mark because of dependencies / cosmetic
issues and/or incompatibilities with other extensions or with the latest
camlp4 ?
* what kind of syntactic sugar is absolutely missing from the language ?

As this may come into play later, whenever you suggest an extension,
don't hesitate to comment whether you believe whom this extension would
serve: beginners ? power-users ? some more specific category ?

Cheers,
 David
--
David Teller
 Security of Distributed Systems
 http://www.univ-orleans.fr/lifo/Members/David.Teller
 Angry researcher: French Universities need reforms, but the LRU act brings liquidations.

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



--
-----------------------------------------------------------------------
(\__/)
(='.'=)This is Bunny. Copy and paste Bunny into your
(")_(")signature to help him gain world domination.
------------------------------------------------------------------------ ------=_Part_6007_29339955.1209155867862--