From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA20382; Tue, 23 Dec 2003 17:47:24 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA14592 for ; Tue, 23 Dec 2003 17:47:23 +0100 (MET) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hBNGlMb21262 for ; Tue, 23 Dec 2003 17:47:22 +0100 (MET) Received: from davidb by mail.davidb.org with local (Exim 3.36 #1 (Debian)) id 1AYpgn-0002QF-00 for ; Tue, 23 Dec 2003 08:47:21 -0800 Date: Tue, 23 Dec 2003 08:47:21 -0800 From: David Brown To: caml-list@inria.fr Subject: [Caml-list] Ocaml syntax. Message-ID: <20031223164721.GA9202@davidb.org> References: <1072152186.59938.30.camel@tylere> <20031223085259.GA2000@fistandantilus.takhisis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031223085259.GA2000@fistandantilus.takhisis.org> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 camlp:01 terse:01 persist:01 inconsistent:01 ocaml:01 ocaml:01 readable:01 syntax:02 syntax:02 native:02 native:02 clearer:02 dave:03 revised:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Dec 23, 2003 at 09:52:59AM +0100, Stefano Zacchiroli wrote: > I also suggest to have a look at the revised syntax described in the > camlp4 manual. I'm not using it because I've discovered it too late and > I've to work everyday with code written in the standard one, but I found > it clearer in a lot of cases. Since you're starting from scratch I think > you can give it a chance. The revised syntax to ocaml attempts to provide an cleaner, more consistent syntax for the language, and it does a fairly good job of it. However, I don't see very much code written in the revised syntax. I've thought about why, and come up with an interesting theory. The native ocaml syntax has a bunch of strange inconsistencies. Human languages also tend to have lots of inconsistencies, especially around the core words. Perhaps there is something about our brains that works best when the core aspect of a language is inconsistent. After a bout of frustration with the native ocaml syntax, I know consider it to be the most pleasing syntax of any language I've ever used. It is terse, yet readable. There is also something about it, now, that feels very natural to me. My suggestion to those frustrated by the syntax: persist. There are some difficulties, but there are also some significant benefits to it as well. Dave Brown ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners