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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 417397FA1F for ; Fri, 11 Jul 2014 16:21:17 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=pra; client-ip=74.55.86.74; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=mailfrom; client-ip=74.55.86.74; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp.webfaction.com) identity=helo; client-ip=74.55.86.74; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="postmaster@smtp.webfaction.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlUIALXxv1NKN1ZKnGdsb2JhbABZhgmBIsVLAYEhDwEBAQEBBg0JCRQohAMBAQQBI1YFCwsaAiYCAkcQBhuIMgitPpkCF4EsjWozB4J3NoEWBZZrixUYkE4 X-IPAS-Result: AlUIALXxv1NKN1ZKnGdsb2JhbABZhgmBIsVLAYEhDwEBAQEBBg0JCRQohAMBAQQBI1YFCwsaAiYCAkcQBhuIMgitPpkCF4EsjWozB4J3NoEWBZZrixUYkE4 X-IronPort-AV: E=Sophos;i="5.01,643,1400018400"; d="scan'208";a="71100203" Received: from mail6.webfaction.com (HELO smtp.webfaction.com) ([74.55.86.74]) by mail3-smtp-sop.national.inria.fr with ESMTP; 11 Jul 2014 16:21:16 +0200 Received: from [172.17.156.176] (global-1-26.nat.csx.cam.ac.uk [131.111.184.26]) by smtp.webfaction.com (Postfix) with ESMTP id E88D820E1BB0; Fri, 11 Jul 2014 14:21:12 +0000 (UTC) Date: Fri, 11 Jul 2014 15:21:10 +0100 From: =?utf-8?Q?Daniel_B=C3=BCnzli?= To: Benjamin Canou Cc: caml-list@inria.fr Message-ID: <1F6CA9F698BB4509800C3FD280CE0ACB@erratique.ch> In-Reply-To: <53BFE73E.6060106@gmail.com> References: <53BFE73E.6060106@gmail.com> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Caml-list] proposal for finding, loading and composing ppx preprocessors Le vendredi, 11 juillet 2014 =C3=A0 14:31, Benjamin Canou a =C3=A9crit : > Again, the goal is to agree now on a standard way and avoid the mess we > had with camlp4.=20=20 Rather than *avoid* I'd rather say *improve* over the mess=E2=80=A6 > What do you think ? If I understand correctly this is a ppx for selectively using ppxs over a f= ile. Bonus points for the higher-order ppx.=20=20 Since apparently we have to deal with this crap until we actually get somet= hing decent for static meta programming in this language, wouldn't it be ea= sier to just define a standard annotation as you suggest, and then have som= e kind of "ppxdep" tool that just spits you the flags you will have to put = on the command line in order to be able to compile it ?=20=20 I think I'd rather see explicitly and statically what crap extension is bei= ng pulled by the sources I'm trying to compile rather than being hidden fro= m all that by that meta ppx extension. Daniel P.S. What happens if I do [@@@ syntax "ppx_loader"] ?=20=20