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 FAA23647; Tue, 23 Dec 2003 05:19:23 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA23511 for ; Tue, 23 Dec 2003 05:19:21 +0100 (MET) Received: from cs.fiu.edu (cheetah.cs.fiu.edu [131.94.130.107]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hBN4JKv08594 for ; Tue, 23 Dec 2003 05:19:20 +0100 (MET) Received: from cs.fiu.edu (IDENT:tWqMHiovbnOxBB4XlLldbvTfH+C8WRi/@leopard.cs.fiu.edu [131.94.130.219]) by cs.fiu.edu (8.12.10/FIU-CS-JF-1.3) with SMTP id hBN4JJmK007362; Mon, 22 Dec 2003 23:19:19 -0500 From: jayanta nath Received: from c-24-6-3-124.client.comcast.net ([24.6.3.124]) (SquirrelMail authenticated user jnath001) by www.cs.fiu.edu with HTTP; Mon, 22 Dec 2003 23:19:19 -0500 (EST) Message-ID: <29911.24.6.3.124.1072153159.squirrel@www.cs.fiu.edu> Date: Mon, 22 Dec 2003 23:19:19 -0500 (EST) Subject: Re: [Caml-list] Frustrated Beginner To: X-XheaderVersion: 1.1 In-Reply-To: <1072152186.59938.30.camel@tylere> References: <1072152186.59938.30.camel@tylere> X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 3.07:01 python:01 langauges:01 postion:99 bug:01 faq:01 faq:01 beginner's:01 beginners:01 bin:01 compiler:01 htmlman:01 caml-bugs:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello Tyler Eaves, Nice to know about you! Error reporting is a big issue not just in OCaml but in any functional language. A great deal of research is currently going on to better the error reporting. As for a site where you can learn OCaml, to the best of my knowledge, the online manual for OCaml version 3.07 at the site of INRIA (the institute where OCaml has been developed) might be a good starting point for you. The link is : http://caml.inria.fr/ocaml/htmlman/ Other than this, I think it will take some time and practice to get used to the syntactical issues like ";;" for ";". Best of Luck in learning OCaml! Regards, Jayanta Kumar Nath. > First a bit of background: > > I'm a 19 yr old computer science student, been programming for perhaps > 10 years. Started (Like so many did in the early '90s with QBasic in > DOS. These days most of my work is done in either PHP (web stuff) or > Python (everything else) with the occasional bit of C for stuff that > needs to run really fast. I'm also passingly familiar with a number of > other langauges (C++, Java, Perl, etc). > > So why is O'Caml giving me so much trouble? I've been trying to pick it > up for about a week now, read various online tutorials. I'm just having > no luck at all. My largest program to date (that works) is all of 3 > lines long, and simply printed out the command line arguments passed to > the program. > > My biggest source of problems seems to be the syntax. I'm totally > confused as far as ; vs ;; vs nothing, when to use ( ), and things of > the like. It doesn't help that the compiler is completly naive when it > comes to Syntax Errors. It would be so helpful if it could give an error > message that actually told the programmer what it expected. I realise > that O'Camls syntax allows many things, so that it may be hard to say > exactly what it WAS expecting in all cases, but surely SOMETHING > meaningful, besides a charater postion could be given? > > What I'd really like is a site with examples of actual programs. Most of > the example code I've seen is A: Not commened and B: Recursive > Mathematical functions. I'd really love to see an example, of say, > reading in a file, looking at each character, and doing something when > it encounters, say, a tab. Or any other such program that actually does > something. > > I really want to like O'Caml. It seems to offer a very nice feature set, > and the ability to compile to super-fast native code is the icing on the > cake. Right now though, I'm frustrated and on the verge of giving up. > > TE > > > ------------------- > 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 ------------------- 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