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=1.6 required=5.0 tests=AWL,RCVD_IN_BL_SPAMCOP_NET autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5E3DABC0A for ; Wed, 29 Nov 2006 16:26:56 +0100 (CET) Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [213.186.38.137]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id kATFQt0v009735 for ; Wed, 29 Nov 2006 16:26:56 +0100 Received: (qmail 21942 invoked by uid 503); 29 Nov 2006 15:28:38 -0000 Received: from b6.ovh.net (HELO mail177.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 29 Nov 2006 15:28:38 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 29 Nov 2006 15:26:56 -0000 Received: from vil93-4-82-227-140-227.fbx.proxad.net (HELO ?192.168.1.2?) (lists%philippewang.info@82.227.140.227) by ns0.ovh.net with SMTP; 29 Nov 2006 15:26:54 -0000 Message-ID: <456DA6B2.9000401@philippewang.info> Date: Wed, 29 Nov 2006 16:26:42 +0100 From: Philippe Wang User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) MIME-Version: 1.0 To: Martin Jambon Cc: caml-list@inria.fr Subject: Re: [Caml-list] About the O'Reilly book on the web References: <45688DAE.7010309@ccr.jussieu.fr> <456AAABE.5020405@irisa.fr> <456CA3B7.1020508@philippewang.info> <9d3ec8300611281433q5509ccby65937fd4384f5a25@mail.gmail.com> <456CD1E7.80908@philippewang.info> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Remote: 82.227.140.227 (vil93-4-82-227-140-227.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Miltered: at concorde with ID 456DA6C0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; o'reilly:01 ocaml:01 syntax:01 regexps:01 syntax:01 ocamllex:01 ocamllex:01 regexps:01 pcre:01 ocaml:01 ocaml's:01 camlp:01 deed:98 caml-list:01 usable:01 Hello, > You can't make things better without making them different. OCaml is > about being better, and so is the syntax I chose for regexps. It is fully > compatible with the syntax used by ocamllex, and I must say ocamllex > regexps are incredibly easy to learn and to use. I never had any problem > with them. In comparison Str or PCRE regexps are truly horrible. Maybe if regexps are taken to first class values (at least in the syntax, whatever what is done behind...), like in Perl, then it'll be easily usable. Well, I will look with more attention to micmatch, maybe it's actually really easy to handle it. I will think about it when I have time for that. > I don't think that those people would be more satisfied with another > syntax anyway, because OCaml would still be different! It's just that > average people are afraid of anything that is different from what they > already know. In deed, you're probably right. Still I hope not. > OK. Here is what I propose to whoever thinks OCaml's syntax is not good: > give me a *complete* description of the syntax that you want and I'll > implement it. That's really hard :-D I like the OCaml syntax very much (I must be crazy :-D) (but definitely not the one of "Camlp4 Chapter 6 : The Revised syntax") -- Philippe Wang