From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id CB14E7F860 for ; Fri, 7 Mar 2014 23:12:38 +0100 (CET) Received-SPF: Neutral (mail2-smtp-roc.national.inria.fr: domain of simon.cruanes.2007@m4x.org does not assert whether or not 129.104.30.34 is permitted sender) identity=pra; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=GAqj=YI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-sender="simon.cruanes.2007@m4x.org"; x-conformance=sidf_compatible; x-record-type="spf2.0" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of SRS0=GAqj=YI=m4x.org=simon.cruanes.2007@bounces.m4x.org designates 129.104.30.34 as permitted sender) identity=mailfrom; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=GAqj=YI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-sender="SRS0=GAqj=YI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-conformance=sidf_compatible; x-record-type="spf2.0" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@mx1.polytechnique.org designates 129.104.30.34 as permitted sender) identity=helo; client-ip=129.104.30.34; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="SRS0=GAqj=YI=m4x.org=simon.cruanes.2007@bounces.m4x.org"; x-sender="postmaster@mx1.polytechnique.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvkBAEVDGlOBaB4inGdsb2JhbABag0GDXbhRhnAWDgEBAQEBCAsJCRQogiUBAQEDAQEBASBLCwULCyEhAgIPBRMBFCGIBAgECa5woSEXFo1dg141gRQElWyCVoEzlCc X-IPAS-Result: AvkBAEVDGlOBaB4inGdsb2JhbABag0GDXbhRhnAWDgEBAQEBCAsJCRQogiUBAQEDAQEBASBLCwULCyEhAgIPBRMBFCGIBAgECa5woSEXFo1dg141gRQElWyCVoEzlCc X-IronPort-AV: E=Sophos;i="4.97,610,1389740400"; d="scan'208";a="61813401" Received: from mx1.polytechnique.org ([129.104.30.34]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 07 Mar 2014 23:12:38 +0100 Received: from lenat (mna75-4-82-225-76-110.fbx.proxad.net [82.225.76.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 4920A1409132A; Fri, 7 Mar 2014 23:12:37 +0100 (CET) Date: Fri, 7 Mar 2014 23:12:35 +0100 From: Simon Cruanes To: Yotam Barnoy Cc: Ocaml Mailing List Message-ID: <20140307221234.GA14634@lenat> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Fri Mar 7 23:12:37 2014 +0100 (CET)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.211653, queueID=7C24D1409132B X-Org-Mail: simon.cruanes.2007@polytechnique.org Subject: Re: [Caml-list] Batteries Included syntax extensions? --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le Fri, 07 Mar 2014, Yotam Barnoy a =C3=A9crit : > I have a question about Batteries Included. Specifically, how do I get the > syntax extensions working and which syntax extensions are available? The > various bits of documentation I've found seemed either contradictory or d= id > not mention any syntax extensions at all. I'm specifically interested in > things like automatic rope generation and list comprehensions. Hi! The current version of Batteries is 2.2.0 and its documentation is here: http://ocaml-batteries-team.github.io/batteries-included/hdoc2/ . As far as I know, there are no more syntax extensions in Batteries since 2.0.0 (which explains why it doesn't depend on camlp4). I don't know much about the "rope generation" you talk about, but list comprehensions are nicely replaced (imho) by the |> operator: List.range 1 `To 10 |> List.filter (< 5) |> List.map string_of_int You can ask more questions on the Batteries mailing list ( https://lists.forge.ocamlcore.org/cgi-bin/listinfo/batteries-devel ). Hope you will find it helpful! Cheers, --=20 Simon http://weusepgp.info/ key 49AA62B6 fingerprint 949F EB87 8F06 59C6 D7D3 7D8D 4AC0 1D08 49AA 62B6 --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCgAGBQJTGkRSAAoJEErAHQhJqmK2UFMP/0g7oFaooFPzZP+WJaCkP2fu fUMV8/1jiNX68W8AZzP4kMfubPiJF0/suzUpj7H1M4clLE5EueoFCh0BrF5/0Z/N a7Vqe0s1z9TpM3Wcks9rH2gLzOzk/orkavOPtRuGRLMk1q641OBOq5TEp1nqlcrf RyWlHKQuwtzgNIyUfNhGfHUUyeHpJfaliXsryYBw0SdKN6+nhmBq0V5v6zcoxou+ 8Ur18px9CU7Z3grJWjQD3Ug0OeujOKhP6w2UmCR7MRu+ZzAMDTMrm2J9C6ILaGoU Sqzqth4neQ/OIGP0qE2ZTDuGO4VUxqdlmuikkG+hd4eCSRxObCTVBtskgQsxzvW6 McxZ43QRqLzW7gGFfZKZiSdA1RZKgVNTkvaSdOo33siyWtqLjSHaRZX5Hw1PgIxO 4bYW38cGOzWMeqPLjCxel2gKzycbDjspAY8MET9tXBEp1OF/Jy/7HelnV8O/jIhv ZEiA/RkSCNTp4Ivf1z+z6NajrxuuMKFMB+6JDfSmtO1lmD5saVz/gSn0Wp96jhMY QsfFpNt5vxg1F2aZSDVlMEKPrgacaa2IYzL94y3PrgJs8vTNn9ml9t44VRhhlaNk wefa25jm1RumvxAsIrW/SLHKQkFSyaZ4pP3kuL2NygrdqnfLg+RXg1ZK3+W/tR8O V1ib7PyFs5jFR5YO+moD =UHON -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--