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 95A307EEFC for ; Thu, 19 Nov 2015 11:35:46 +0100 (CET) IronPort-PHdr: 9a23:MSGLxRSygqrRY+j/24TL+3o989psv+yvbD5Q0YIujvd0So/mwa64bB2N2/xhgRfzUJnB7Loc0qyN4/2mBzdLuMjJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviptuNOE4R2nKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGY2zRakzTKRZATI6KCh1oZSz7ViQBTeIszEnVWgZjgBPG0yNyRDxXp78tmGy4u980ymTMMmwVrc5Vii46L9DSRn0hSNBPDk8pjL5kMt12Y5SvhOt7zx43pXZKNWZNP1jZa71f9ocSHFdRMtcS2pKBYbqPNhHNPYIIesN99q1nFAJtxbrQFD0XO4= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=dhouse@janestreet.com; spf=Pass smtp.mailfrom=dhouse@janestreet.com; spf=None smtp.helo=postmaster@mxout1.mail.janestreet.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dhouse@janestreet.com) identity=pra; client-ip=38.105.200.112; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="dhouse@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of dhouse@janestreet.com designates 38.105.200.112 as permitted sender) identity=mailfrom; client-ip=38.105.200.112; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="dhouse@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mxout1.mail.janestreet.com) identity=helo; client-ip=38.105.200.112; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="postmaster@mxout1.mail.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BqAAAxpU1Wm3DIaSZegm6BIG8GvneBZRmFdgKBPAc5EwEBAQEBAQEBEAEBAQEBBhYJT4ItgggBAQMBEhEdAQEHMAEECwsEBzcCAiISAQUBHAYTIogECAOhE4ExPjGKV3GEYwEFi0sBAQEBAQEBAwEBAQEBAQEBAQEBEgYKhkqEfod1gUSNIXWIOY0rmngSJIEXIgGCRCOBamWFIAEBAQ X-IPAS-Result: A0BqAAAxpU1Wm3DIaSZegm6BIG8GvneBZRmFdgKBPAc5EwEBAQEBAQEBEAEBAQEBBhYJT4ItgggBAQMBEhEdAQEHMAEECwsEBzcCAiISAQUBHAYTIogECAOhE4ExPjGKV3GEYwEFi0sBAQEBAQEBAwEBAQEBAQEBAQEBEgYKhkqEfod1gUSNIXWIOY0rmngSJIEXIgGCRCOBamWFIAEBAQ X-IronPort-AV: E=Sophos;i="5.20,317,1444687200"; d="scan'208";a="188204222" Received: from mxout1.mail.janestreet.com ([38.105.200.112]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2015 11:35:45 +0100 Received: from tot-qpr-mailcore1.delacy.com ([172.27.56.68] helo=tot-qpr-mailcore1) by mxout1.mail.janestreet.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1ZzMZ6-0006WB-Ov for caml-list@inria.fr; Thu, 19 Nov 2015 05:35:44 -0500 X-JS-Flow: external Received: by tot-qpr-mailcore1 with JS-mailcore (0.1) (envelope-from ) id BWTaYA-AAACcB-Wb; 2015-11-19 05:35:44.718453-05:00 Received: from mail-qg0-f50.google.com ([209.85.192.50]) by mxgoog1.mail.janestreet.com with esmtps (UNKNOWN:AES128-GCM-SHA256:128) (Exim 4.72) (envelope-from ) id 1ZzMZ6-0007qc-Km for caml-list@inria.fr; Thu, 19 Nov 2015 05:35:44 -0500 Received: by qgcc31 with SMTP id c31so4961234qgc.3 for ; Thu, 19 Nov 2015 02:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=E7c/2mPzOGQ8WiJHYZOqDsE6gWrv7fdu+MwV1ATzK1w=; b=clT0uGV40MguUqcN1DP4pzHycZsTywjtfmT4+SiNuOZtUEIFTSKD12pYtPll3fMfKR DxOqtvx4fwwKEBW4mmUdgqlAXpiweJYAFNClyy/m45eHl5ABSCbZ80vjz5XcDHXqLWKj WF3KJXKnBNEOS1p/GmNbgwGAMLvW0oRkA+EtA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=E7c/2mPzOGQ8WiJHYZOqDsE6gWrv7fdu+MwV1ATzK1w=; b=VCwN6teReDCLzfs4+FogFRhIwnhs7/hwGuV3DdkBd9eS5XJhgWJn/j5p0G3+dSwkSQ uwQ6w+uEORhh7mYm72xROUB7altnWdEq3qn87opx/EsUWpAfusjykqcIrg/QsYLjZ7rt 4cq66tyGqYZMnBFz45ZzR0xIYz8X2clGbT6e046LGFbZOdA8BeI71PPzPtcvpzYQM9eM HU/Zgp/PCQkHg9/uuhLHiiZP+vQBeyTy++agAzHzujbvzzYvruPN0tV8D7HTWnPJHzru cjRA+HPEKpMw0lqBPJtJJ09VdqpBJO1aG8clgkcmS3j+yvXc23MmX/DSDYjeVzXcYkOf kTlA== X-Gm-Message-State: ALoCoQlJd81P3lrxKEVje/2Hxnc7b/taDVhtAtSqGex0Ya0O7WYMHBaP/lAK9FHVPWAhoPozmlgDz0NZEipph0Uktl3F7rieIky4+92vk49YTqFiw1arXf8zOt6GC0yo/9zJuOFQBJVC X-Received: by 10.140.34.204 with SMTP id l70mr6292051qgl.24.1447929344407; Thu, 19 Nov 2015 02:35:44 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.140.34.204 with SMTP id l70mr6292046qgl.24.1447929344265; Thu, 19 Nov 2015 02:35:44 -0800 (PST) Received: by 10.140.21.111 with HTTP; Thu, 19 Nov 2015 02:35:44 -0800 (PST) In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CE42130@IRSMSX102.ger.corp.intel.com> References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE42130@IRSMSX102.ger.corp.intel.com> Date: Thu, 19 Nov 2015 18:35:44 +0800 Message-ID: From:David House To:"Soegtrop, Michael" Cc:Ocaml Mailing List Content-Type: multipart/alternative; boundary=001a11c0674a39ab310524e25219 X-JS-Processed-by: mailcore X-Sender-Copy: hkg-copy Subject: Re: [Caml-list] Abbreviating module paths - something like "open X as Y" --001a11c0674a39ab310524e25219 Content-Type: text/plain; charset=UTF-8 The usual way is "module X = Y". On 19 November 2015 at 18:34, Soegtrop, Michael wrote: > Dear OCaml Users, > > > > I wonder if there is a way to abbreviate module paths. Something like > > > > open as > > > > I usually find it more readable to have a 2 or 3 letter acronym for a > module name than having the complete module name or no module name at all. > Is there a way to do this in OCaml? > > > > Best regards, > > > > Michael > > Intel Deutschland GmbH > Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, www.intel.de > Managing Directors: Christin Eisenschmid, Christian Lamprechter > Chairperson of the Supervisory Board: Nicole Lau > Registered Office: Munich > Commercial Register: Amtsgericht Muenchen HRB 186928 > --001a11c0674a39ab310524e25219 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The usual way is "module X =3D Y".

On 19 November 2015 at 18= :34, Soegtrop, Michael <michael.soegtrop@intel.com>= wrote:

Dear OCaml Users,<= u>

=C2=A0

I wonder if there is a wa= y to abbreviate module paths. Something like

=C2=A0

open <module-path> = as <acronym>

=C2=A0

I usually find it more re= adable to have a 2 or 3 letter acronym for a module name than having the co= mplete module name or no module name at all. Is there a way to do this in OCaml?

=C2=A0

Best regards,

=C2=A0

Michael

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, ww= w.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


--001a11c0674a39ab310524e25219--